Hi all,
i am having problem in finding graph isomorphism together of 5 graph
objects.As an example my r script is as follow.

g1 <- graph.ring(10 , directed = FALSE)
g2 <- graph.ring(5 , directed = FALSE)
g3 <- graph.ring(7 , directed = FALSE)
g4 <- graph.ring(6 , directed = FALSE)
g5 <- graph.ring(8 , directed = FALSE)

g <- list(g1,g2,g3,g4,g5)
g


iso = function(g , i ,j)
{
  r <- graph.isomorphic(g[i],g[j])
  return(r)
}

for(i in 1:5)
{
  for(j in 1:5)
  {
    r= iso(g , i , j)
    print(r)
  }
}

It is giving an error that g is not a graph object. Because in function
graph.isomorphic it is only accepting graph objects. Is there any way to
find isomorphism of multiple graph objects together using for loop.
Thanks.
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to