...open mouth insert foot time.... I had an error in passing the g2 to the method call - it was not a graph (which is what the error message was telling me).
Thanks for pointing me in the right direction. Steve R -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Tamás Nepusz Sent: Friday, January 18, 2013 10:04 AM To: Help for igraph users Subject: Re: [igraph] Exception when trying to call count_subisomorphisms_vf2 > I'm experimenting with Graph.count_subisomorphisms_vf2 to see if it will do > what I need it to do. I'm starting with a very simple call (assume g1 and g2 > are instances of igraph.Graph): > > countMatches = g1. count_subisomorphisms_vf2(g2) > > When I execute this I get the exception "argument 1 must be igraph.Graph, not > instance". This seems to work for me; e.g.: >>> g1 = Graph.GRG(100, 0.2) >>> g2 = Graph.Ring(4) >>> g1.count_subisomorphisms_vf2(g2) 81472 What does type(g1) and type(g2) say? Best, Tamas _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
