Equal nodes?

Is there a way to tell dot that a node and another one are the same, even if they have different labels?

I have these nodes (which are names of sets)

(q0 q2 q1)

(q0 q1 q2)

Also, I have these two:

(q2 q1) (q1 q2)

So, in set theory, they're equivalent.

But Dot doesn't know that, so instead, it creates 2 different nodes. I could make the combinations of items in the sets, and then put them there but Dot draws them even if there's no edge that leads to them.

Is there a way to:

Gtk output, how to use the file ?

I use GraphViz Python and the Pydot library. I try to export my graph to GTK so i used the following command :

graphpy.write("my_graph_dot", format='tk', prog='dot')

I see that the outcome file seems to be a GTK canvas, but i don't know what can i do with this file ?
How can i use this canvas to make a "pop-up" window with my graph inside ?

Recent comments

Syndicate content