graph isomorphic

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

graph isomorphic

malwanain
Hi

I've two graphs (.dot files) and I need to check if they are isomorphic or not. Do you have an example explaining how to load these files and check them in graph-tool?

Regards
Reply | Threaded
Open this post in threaded view
|

Re: graph isomorphic

Tiago Peixoto
Administrator
On 27.01.2015 12:00, malwanain wrote:
> Hi
>
> I've two graphs (.dot files) and I need to check if they are isomorphic or
> not. Do you have an example explaining how to load these files and check
> them in graph-tool?


    a = load_graph("a.dot")
    b = load_graph("b.dot")
    print(isomorphism(a, b))

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
http://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (836 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>