analyze.subgraphs: Analyzing small subgraph patterns.

Description Usage Arguments Value Examples

Description

analyze.subgraphs analyzes the frequency of subgraph patterns given a list of concepts and a set of maps in a conceptmaps object.

Usage

1
analyze.subgraphs(maps, concept.list)

Arguments

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.

Value

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.

Examples

 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"))

comato documentation built on May 2, 2019, 6:52 a.m.