I have two graphs (g1) and (g2), the number of nodes and degree are different in both graphics. I would like to calculate "in some way" how similar are both graphs. I thought in using something like a Jaccard index, the approach would be something like this:
g1 <- erdos.renyi.game(100, 0.3)
g2 <- erdos.renyi.game(100, 0.3)
g.union <- graph.union(g1, g2)
g.intersect <- graph.intersection(g1, g2, keep.all.vertices=F)
sim.index <- ecount(g.intersect)/ecount(g.union)
But I don't know if this make any sense,
Thanks in advance