GraphStream Users

Archives de la liste Aide


Leveraging the SpringBox algorithm to read out location data for own visualization


Chronologique Discussions 
  • From: Nils Peuser <Nils.Peuser AT igrafx.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>
  • Subject: Leveraging the SpringBox algorithm to read out location data for own visualization
  • Date: Thu, 21 Feb 2019 00:56:21 +0000
  • Accept-language: en-US, de-DE
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Nils.Peuser AT igrafx.com;
  • Ironport-phdr: 9a23:/VIwGxzn/66/wo/XCy+N+z0EezQntrPoPwUc9p sgjfdUf7+++4j5YhGN/u1j2VnOW4iTq+lJjebbqejBYSQB+t7A1RJKa5lQT1 kAgMQSkRYnBZujCEngasbncjc3BuxDW0Vs8WH9Ok9QS46nPQ/Ir3a/7CAfFl DkLQQle7bTHYjfx4Svzeeu9pbPYgJOwj2gfbd1KxbwpgLU5IEXjpFrJLZ3wR zM6ndPdv8ew2R0bV6ehBfz4M6s8fsBuzxdofcg69JNXe3hcqI0QKYQDDM9L3 t06Q==
  • Ironport-sdr: kCdkxNcFsjfiRLnCV3VgaFJuYTPFl2YSNFpVqWwGpB2+qbkHdZ8EMXy8ZMCVaHxJMBWYNqh+L2 qEv1EaKhhPuC3m0u/K0VJhLnYOPXx3sYQ=

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 Manager

iGrafx 
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.

Top of page