Dear GraphStream users,
I am currently trying to leverage the GraphStream API for some graph analysis and so far like the library very much. While I have a Java-based program, I would like my visualization to take on a different format, not rendered by Java itself. I was trying to get the SpringBox Layout algorithm to work with a programmaticly created MultiGraph. However, I was not able to do so and read out the currently calculated x/y (no need for a 3d layout) coordinates from the Node attributes. I was trying to dig into the source of SpringBox/BarnesHut.java as well was the LayoutRunner/Viewer mechanism but that was a little bit more than I was hoping to have to investigate to simply apply a force-based layout algorithm.
Could someone point me how to do this in a headless environment where I have no access to Java Graphics? Here's example code/pseudo code:
---------
MultiGraph graph = new MultiGraph("derp", false, true);
SpringBox sb = new SpringBox(false);sb.addSink(graph);for(int i = 0; i < 100; ++i){sb.compute();}// Read out calculated coordinates??? Node attributes don't work here it seems.-------------------
Nils Peuser
DevOps Engineering ManageriGrafx
7585 SW Mohawk St
Tualatin, Oregon
Office: +1 (503) 404-6027
www.igrafx.com
Twitter | LinkedIn
Get the most valuable transformation, compliance and operational insights from our network of contributors delivered straight to your inbox. Sign up for our Transformation Weekly Newsletter.
Archives gérées par MHonArc 2.6.16.