Hi,

Tom Breloff <t...@breloff.com> writes:
> FYI... I'm working on a demo for this sort of thing... stay tuned:

looking forward to it. In the meantime I found a way to use Graphs to
nicely display the graphs inside Jupyter notebooks:

,----
| using Graphs
| using GraphViz
| 
| g = simple_graph(3)  #Directed Graph (3 vertices, 0 edges)
| add_edge!(g, 1, 2)   #edge [1]: 1 -- 2
| add_edge!(g, 3, 2)   #edge [2]: 3 -- 2
| add_edge!(g, 3, 1)   #edge [3]: 3 -- 1
| 
| GraphViz.Graph(Graphs.to_dot(g))
`----

Cheers,
-- 
Ángel de Vicente
http://www.iac.es/galeria/angelv/          

Reply via email to