I would like to use Pipeline Pilot to read in an adjacency matrix (from Excel, e.g.) and then generate a graphical display of the resultant directed graph. It seems fairly simple in concept, but I'm having trouble getting any traction.
Has anyone done something similar or does anyone have suggestions?
Thanks!
Has anyone done something similar or does anyone have suggestions?
Thanks!

I did not see an obvious way to achieve this, but perhaps someone will have a better answer. In the meantime I have posted this as an enhancement request in our official tracking system.
If you would like to have your name associated with the request so that you can be notified if this feature is implemented as a component or protocol in the future, please contact me directly by email so that I can add it to the request.
Best wishes,
Lynn Miller, Accelrys Pipeline Pilot Support
miller@accelrys.com
Simple Force-directed example:
http://sawamuland.com/flash/graph.html
Prefuse supports LOTS of advanced data visualization techniques:
http://www.prefuse.org (Java version)
http://flare.prefuse.org (ActionScript version)
http://www.graphviz.org/
Just write a component that converts your Excel file into dot form (tutorial here http://www.graphviz.org/pdf/dotguide.pdf) and then runs dot on your server. The output (jpg, png, svg, pdf, ps) can then be read back in and displayed. This should be quite straightforward.
(first maybe use some perl code to transform the adjacency matrix to a graph in cytoscape format and then visualise with cytoscape)
I saw Pedro made a component to do that, though I didnt test it yet
good luck
cheers
steve
Since this request was posted we released some new Canvas Components in the Reporting Collection (new with the release of PP 7.5.2 CU2) that should address this nicely.
For an example, see the "Network Diagram" protocol on the Protocols tab under SciTegic Examples.
Best wishes,
Lynn
There is already an example using GraphViz available on the forum here
https://community.accelrys.com/message/2567
I have used this template to look at some chemical similarity rather than document, simple example attached. The problem I've found with GraphViz is that it scales pretty poorly.
Another tool I've found quite efficient for larger data-sets is igraph, again available through R-stats.
[edit: I just noticed this thread was actually started some time before Stephane posted his components for graphviz]
Actually, you may do this pretty easily using standard PP components. Depending on the matrix format (with or without column and/or row header), you may have to modify the protocol below.
Basically, use excel or text reader to read the matrix, unpivot the data, in my example I unpivot '\d' since column header are numerical, you end-up with a list of source/target edges with an extra boolean column telling you whether source and target are linked. You may filter out proper edges with a custom filter to get the whole list of edgs.
Eventually, you can draw the graph, here I use Discngine Graph Collection to build the graph and export it to GraphViz.
If there is no column names nor row names in your file, you should add an index by adding a 'Count and Index' component before unpivoting, then unpivot on '!Index', and rename targets by replacing 'Column' with ''.