Can I draw a graph whose vertices have two kind of labels?
Hello.
I want to draw a graph.
Each vertex connects to another information.
For example,
G=graphs.EmptyGraph()
G.add_vertices([1,2,3,4])
for i in [1,2,3]:
for j in [i+1..4]:
if j%i==0:
G.add_edge([i,j])
V=[]
for i in G.vertices():
if i<3:
V=V+["Dog"]
else:
V=V+["Cat"]
Then 1,2 --> Dog and 3,4 --> Cat.
I want to get a plotting graph which shows the second information Dog and Cat.
Is that possible?
Thanks.