Here's an applet (based on touchgraph, with several mods)
that renders the relationships between Texas state Senatators and their committess. The data
is pulled from the FOAF/RDF/XML file I wrote about previously.
It's similar to my friendster hack,
but the all the xml-related parts are completely different. I made some rendering changes, and added
wheel mouse support for zooming.
Since my state Senator is Gonzalo Barrientos,
I decided to initialize the applet so it's pointing at him. Click on any node to refocus, and it will show the two-degree
network for that Senator or committee. Right click on nodes for more options. The little blue numbers indicate how many
hidden connections stem from each node.
I spent some time today experimenting with a JGraph-based viewer. I can't say I
really like either of these graph libraries all that much. Touchgraph is small and fast, but buggy and awkward to
program. JGraph is equally unwieldly in its API, but much more consistent at least. I haven't got my head
wrapped around automating graph layout in JGraph yet but I plan to give that a try next.
|