FAQ Database Discussion Community


How to draw graph inside swing with GraphStream actually?

java,swing,graphstream
I am trying to implement drawing of tutorial graph inside swing, but failing. The code is follows: package tests.graphstream; import java.awt.BorderLayout; import javax.swing.JFrame; import javax.swing.SwingUtilities; import org.graphstream.graph.Graph; import org.graphstream.graph.implementations.SingleGraph; import org.graphstream.ui.swingViewer.View; import org.graphstream.ui.swingViewer.Viewer; public class Tutorial1_01 { private static Graph graph = new SingleGraph("Tutorial 1"); public static class MyFrame extends...

auto-layout in GraphStream, node position

java,autolayout,graphstream
I am using GraphStream, to generate some graphs. I have following questions: When I use auto-layout in the library, is it possible for me to obtain the position information of each node? Can I change the type of edge? e.g. the default edge type is solid line. Can I change...

Importing GraphStream library in NetBeans 8.0

java,netbeans,import,graphstream
I am just getting started with GraphStream and using NetBeans as an IDE in my laptop (Yosemite 10.10). I already downloaded and included .jar library file into my project: My problem is I still can’t import graphstream in my class. This is what I wrote: import org.graphstream.graph.*; but I’m still...

how to use static layout in graphstream

java,graph,static,graphstream
I would like to generate static graph use GraphStream. Is there any suggestion solutions? I read input data from DGS file (generated from other model). Because the number of nodes is not fix every time and I don't want to manually specify each position of each node. Currently I can...