Force Directed Layout in NetBeans

I just came up with the idea of reproducing the GraphView demo I saw in prefuse by using the Netbeans Visual Library API. The GraphView demo uses a Force Directed Layout algorithm to dinamically position the nodes on the screen. It’s really fast and cool. Download prefuse and experiment with it by yourself. I wanted to achieve something similiar with the Visual Library and I succeed up to a point. The force based layout algorithm that I implemented is much simpler that the used in prefuse, so there is no spring-like movement. It looks way cooler with springs. It just uses repulsion between nodes and attraction between connected nodes. ...

March 9, 2009

More graphs

I continue looking for graph visualization software. I rn into prefuse. Looks promising, take a look into the gallery to see some examples. But it’s still only a toolkit so it means that I have to develop at least a little application to be able to visualize my graph. I tried using the examples that come with prefuse and they work but they are not enough. I just converted my data to GraphML and I was able to load it into the GraphView example. But I need to add some functionality to it before I can actually use it to analyze my graph. I’m not sure I can use prefuse to print out the graph anyway so I’m giving up for a while. This graph thing it’s taking too much time, but I will try to come back to it some day.

November 18, 2007