Description Usage Arguments Value Examples
analyze.subgraphs
analyzes the frequency of subgraph patterns given a list of concepts and a set of maps in a conceptmaps object.
1 | analyze.subgraphs(maps, concept.list)
|
maps |
A conceptmaps object. |
concept.list |
A list of concepts (as strings) that define the subgraphs to be analyzed. must be between 2 and 4 concepts in length. |
A list with two elements. The first is a vector that contains the absolute number of occurrences for each subgraph pattern. The second element is a list of igraph objects of the pattern themselves.
1 2 3 4 5 6 7 8 9 10 | #Create concept maps from three random graphs
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g2 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g3 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
#Create conceptmaps object from three conceptmap objects
simple_cms = conceptmaps(list(conceptmap(g1), conceptmap(g2), conceptmap(g3)))
analyze.subgraphs(simple_cms, c("1", "2", "3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.