I got as far as this with Graphs. After installing GraphViz, you can do 
something like this:

    using Graphs

    g = simple_graph(3)
    add_edge!(g, 1, 2)
    add_edge!(g, 3, 2)
    add_edge!(g, 3, 1)

    f = open("/tmp/simple_graph.dot", "w")

    to_dot(g, f)

    close(f)

    run(`/usr/local/bin/dot -Tpdf /tmp/simple_graph.dot 
-o/tmp/simple_graph.pdf`);

    run(`open -a /Applications/Preview.app/ /tmp/simple_graph.pdf`)

which avoids this X11/XQuartz stuff.

Reply via email to