In [1]:
using GraphTools
import GraphViz: Graph
import Graphs: ExVertex, ExEdge
draw(g::GraphStore) = Graph(to_dot(g))
draw(g::GraphStore, ex::Union{ExVertex,ExEdge}) = Graph(to_dot(g, ex))
Out[1]:
In [2]:
draw( @graph A )
Out[2]:
In [3]:
draw( @graph A - B )
Out[3]:
In [4]:
draw( @graph A -> B )
Out[4]:
In [5]:
draw( @graph A 50-> B )
Out[5]:
In [6]:
draw( @graph A 50-> B -> C )
Out[6]:
In [7]:
draw( @graph A -> B -> C -> A )
Out[7]:
In [8]:
draw( (@graph A -> B) + (@graph A -> C) + (@graph D) )
Out[8]: