conceptmap.igraph: Creation of a conceptmap object from an existing graph
Description
conceptmap takes an existing igraph object and tries of coerce it into a conceptmap object (encompassing the igraph object).
Usage
# S3 method for igraph
conceptmap(x, strip = TRUE, ...)
Arguments
x
An igraph object. It must have an attribute called "name" for both vertices and edges. Additional attributes are preserved for graph, vertices and edges.
strip
If TRUE, nodes without adjacent edges are removed from the graph / concept map.
# NOT RUN {#Create conceptmap from a complete graph with 5 nodesrequire("igraph")
graph = graph.full(5)
graph = set.vertex.attribute(graph, "name", value=1:5)
simple_cm = conceptmap(graph)
# }