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: Tamás Nepusz
Subject: Re: [igraph] Exception when trying to call count_subisomorphisms_vf2
Date: Fri, 18 Jan 2013 16:03:36 +0100

> 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




reply via email to

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