A tiny but significant moment of joy to Rijul and I: a Graphy creation published and live in an international journal, it’s nice to see someone finding Graphy useful enough for the tiny but essential task of drawing a complex graph to embed in a research paper.
Posted in Java, JUNG
Tagged graphy, tbiomed
A screenshot gallery; click on a picture to enlarge it.
Constructing A Graph
Graphy is a teaching and learning tool that let’s you visualize graph theoretic algorithms on graphs you can construct yourself. The image above shows one of the graphs we tested Graphy’s step-by-step visualization expertise on; I never thought a depth first search would look that cool. Get Graphy!
Take Graphy for a little walk!
And we mean alpha; which is a polite way of telling you that if you’re nice to Graphy, Graphy might be nice to you. Hey, it’s not going to fry your computer, so give it a try! Post in whatever you’d like to say, ask or complain about in the comments to this post; we’ll compile the frequent questions and complaints into our wiki as soon as we get the time.
This is a follow up to my earlier post on saving to GraphML using the JUNG library. It would make more sense if you browsed through my earlier post before reading this one.
BufferedReader fileReader = new BufferedReader(
You first need to read from your file. This snippet creates a standard Java
BufferedReader, which in turn is fed from a
FileReader that reads from the file specified by the
This one of two posts I’m dedicating to saving out to and loading from GraphML using the JUNG library. These are two parts of a really good library that lack sufficient documentation.
GraphMLWriter<MyVertex, MyEdge> graphWriter =
new GraphMLWriter<MyVertex, MyEdge> ();
PrintWriter out = new PrintWriter(
You first need to create your writers. The first line of code creates your
GraphMLWriter with your custom Edge and Vertex classes specified.