1 | initial version |
Oops it is ok , sorry!
"""https://ask.sagemath.org/question/43106/preserving-the-rooted-tree-layout-in-graphs/"""
G=Graph({1:[2,3],2:[4,5],3:[6,7]})
G.weighted(False)
G.add_edges( [(1,2,'a'),(1,3,'b')] )
G.show(edge_labels=True,layout='tree',tree_root=1)
show(G.vertices())