conceptmap.igraph: Creation of a conceptmap object from an existing graph

Description Usage Arguments Value Examples

View source: R/concept_map.r

Description

conceptmap takes an existing igraph object and tries of coerce it into a conceptmap object (encompassing the igraph object).

Usage

1
2
## S3 method for class '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.

...

-

Value

A conceptmap object.

Examples

1
2
3
4
5
#Create conceptmap from a complete graph with 5 nodes
require("igraph")
graph = graph.full(5)
graph = set.vertex.attribute(graph, "name", value=1:5)
simple_cm = conceptmap(graph)

comato documentation built on May 19, 2017, 8:06 a.m.

Search within the comato package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.