def createDigraph(self): dot = Digraph(comment='The Round Table', \ node_attr={"shape":"circle"}) dot.append("rankdir=LR;") dot.append('size="8,5"') return dot
def test2(): dot = Digraph(comment='The Round Table', \ node_attr={"shape":"circle"}) dot.append("rankdir=LR;") dot.append('size="8,5"') dot.node('A', "", {"shape":"doublecircle"} ) dot.node('B' ,"" ) dot.node('L', "" ) dot.node('S', "", {"shape":"point"} ) dot.edge('S', 'A', "e") dot.edge('A', 'B', "a") dot.edge('B', 'L', "b") dot.edge('L', 'L', "l") # dot.edge('B', 'L', constraint='false') createDotFile(dot, "outfiles\\test2")
def test2(): dot = Digraph(comment='The Round Table', \ node_attr={"shape":"circle"}) dot.append("rankdir=LR;") dot.append('size="8,5"') dot.node('A', "", {"shape": "doublecircle"}) dot.node('B', "") dot.node('L', "") dot.node('S', "", {"shape": "point"}) dot.edge('S', 'A', "e") dot.edge('A', 'B', "a") dot.edge('B', 'L', "b") dot.edge('L', 'L', "l") # dot.edge('B', 'L', constraint='false') createDotFile(dot, "outfiles\\test2")