Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changig the text in a node(vertex) of a graph

This is a graph

T = Graph()
E = [(0, 1), (1, 2), (1, 3),(2, 3), (2, 4)]
T.add_edges(E)
T.set_embedding({0:[1],1:[0,3,2],2:[1,3,4],3:[1,2],4:[2]})
T.show()

I would like to know if it is possible to replace the name of the node by a text a photo ... Also how to label vertices ?

click to hide/show revision 2
None

Changig the text in a node(vertex) of a graph

This is a graph

T = Graph()
E = [(0, 1), (1, 2), (1, 3),(2, 3), (2, 4)]
T.add_edges(E)
T.set_embedding({0:[1],1:[0,3,2],2:[1,3,4],3:[1,2],4:[2]})
T.show()

I would like to know if it is possible to replace the name of the node by a text a photo ... Also how to label vertices ?