Category Archives: JUNG

Graphy In TBioMed

Graphy In TBioMed

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.

Continue reading

Graphy: In Studio

 

A screenshot gallery; click on a picture to enlarge it.

Constructing A Graph
Constructing A Graph

Adding Edge Weights And Capacities
Adding Edge Weights And Capacities

Continue reading

Graphy: A First Look

Graphy Screenshot

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!

Graphy: Alpha Testing Begins!

the graphy website

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.

GraphML With JUNG: Loading From GraphML

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(
                            new FileReader(filename));

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 String filename.

Continue reading

GraphML With JUNG: Saving Out

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(
                      new BufferedWriter(
                          new FileWriter(filename)));

You first need to create your writers. The first line of code creates your GraphMLWriter with your custom Edge and Vertex classes specified.

Continue reading