|
From: | Gábor Csárdi |
Subject: | Re: [igraph] using colors when counting isomorphisms (also indexing) |
Date: | Thu, 7 Mar 2013 14:49:48 -0500 |
V(g1)$color <- rep(1:2, length = vcount(g1))
V(g2)$color <- rep(1:2, length = vcount(g2))
graph.count.isomorphisms.vf2(g1, g2)
[1] 2
It seems to me that there should be four isomorphisms: two mapping node 1 to node 1 and two mapping node 1 to node 3.
Any help reconciling this issue would be greatly appreciated!
Also, the indices of the vertices returned by graph.get.isomorphisms are 1 less than they should be (possibly a relic of previous versions when graphs begin with vertex 0?):
[Prev in Thread] | Current Thread | [Next in Thread] |