Hi, I'm trying to construct an odd graph (http://en.wikipedia.org/wiki/
Odd_graph).
My first thought was to use
X = Set([1,2,3,4,5])
V=(X.subsets(2))
to get the desired subsets for the vertex set. That does get the
subsets, but converting it into a graph doesn't seem to work.
T=Graph(V) gives:
networkx.exception.NetworkXError: Input is not a known data type for
conversion.

The next step in constructing the graph is to create edges wherever
the subsets of the corresponding vertices are disjoint. I didn't know
how to go about that.

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to