title: How to display graph generated with graphstream inside a JavaFX GUI Component?
body: <p>I've been trying to display Graph generated with <a href="http://graphstream-project.org" rel="nofollow">GraphStream</a> in a GUI which is made using JavaFX.Here is what I have so far</p>
  
  <pre><code>Graph graphInit = new Graph(); //class that handles graph population
  SingleGraph graph = new SingleGraph("Graph"); //GraphStream Class
  SwingNode graphViewer = new SwingNode(); //JavaFX Component to display Swing elements
  graph = graphInit.genGraph(graph);
  Viewer viewer = new Viewer(graph,    Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD);
  View view = viewer.addDefaultView(false);   // false indicates "no JFrame".
  graphViewer.setContent((JComponent) view);
  graphHook.getChildren().add(graphViewer);
  </code></pre>
  
  <p>The graphViewer is a SwingNode Component.</p>
  
  <p>I think GraphStream doesn't support JavaFX yet, but I'm not sure. Also, I found <a href="https://github.com/trajar/gs-fx" rel="nofollow">gs-fx</a> which I don't know how to use.</p>
  
  <p>Any help would be appreciated. If there is some other library like GraphStream to generate the graph and display it in GUI, that would work too.</p>