igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Exception when trying to call count_subisomorphisms_vf2


From: Stephen Ray
Subject: Re: [igraph] Exception when trying to call count_subisomorphisms_vf2
Date: Fri, 18 Jan 2013 15:14:42 +0000

...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: address@hidden [mailto:address@hidden 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help





reply via email to

[Prev in Thread] Current Thread [Next in Thread]