Esempio n. 1
0
    def createDigraph(self):
        dot = Digraph(comment='The Round Table', \
        node_attr={"shape":"circle"})

        dot.append("rankdir=LR;")
        dot.append('size="8,5"')

        return dot
Esempio n. 2
0
 def createDigraph(self):
      dot = Digraph(comment='The Round Table', \
      node_attr={"shape":"circle"})
     
      dot.append("rankdir=LR;")
      dot.append('size="8,5"')
      
      return dot
Esempio n. 3
0
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")
Esempio n. 4
0
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")