Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 3

Can I draw a graph whose vertices have two kind of labels?

$
0
0
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 Dog and 3,4 --> Cat. **I want to get a plotting graph which shows the second information Dog and Cat.** Is that possible? Thanks.

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images