[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] graph.motifs function in the R igraph library
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] graph.motifs function in the R igraph library |
Date: |
Sat, 6 Feb 2010 23:40:02 +0000 |
> I am wondering if there is a way to finding out what are the motifs
> found by the graph.motifs() function in the igraph library?
Yes. Citing the manual (http://igraph.sourceforge.net/doc/R/graph.motifs.html):
"graph.motifs searches a graph for motifs of a given size and returns a numeric
vector containing the number of different motifs. The order of the motifs is
defined by their isomorphism class, see graph.isoclass."
So, the first entry in the returned vector contains the number of motifs
represented by graph.isocreate(size=3, number=0), the second entry corresponds
to graph.isocreate(size=3, number=1), the third to graph.isocreate(size=3,
number=2) and so on. Obviously use size=4 if you were looking for motifs of
size 4. You can plot these graphs generated by graph.isocreate to see how they
look like.
--
Tamas