Questions tagged [graphstream]

GraphStream is a Java library for the modeling and analysis of dynamic graphs. You can generate, import, export, measure, layout and visualize them.

The goal of the library is to provide a way to represent graphs and work on it. To this end, GraphStream proposes several graph classes that allow to model directed and undirected graphs, 1-graphs or p-graphs (a.k.a. multigraphs, that are graphs that can have several edges between two nodes).

GraphStream allows to store any kind of data attribute on the graph elements: numbers, strings, or any object.

Moreover, in addition, GraphStream provides a way to handle the graph evolution in time. This means handling the way nodes and edges are added and removed, and the way data attributes may appear, disappear and evolve.

Additional links:

113 questions
2
votes
1 answer

How to layout nodes once in GraphStream?

It is possible to activate layout process in GraphStream with Viewer#enableAutoLayout(). Unfortunately, this process will tamper each user interaction like node dragging. Is is possible to do automatic layout once and then stop? I have tried to turn…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
2
votes
2 answers

Retrieving mouse-clicks in Graphstream

Since I couldn't find any specific place to discuss this, I thought I'd post here... I'm using graphstream 1.1 (http://graphstream-project.org/), a graph visualization library for java, to develop a data visualization tool. I'm needing to retrieve…
mcopo
  • 103
  • 1
  • 6
1
vote
1 answer

Add graphstream graph to jpanel with 'intellij.uiDesigner'

I'm trying to add a GraphStreams graph to a JPanel using com.IntelliJ.uiDesigner, and I'm not sure how to initialize the graph's panel without getting the warning Assignment to UI-bound field will overwrite field generated by UI Designer. Inspection…
Kfir Ettinger
  • 584
  • 4
  • 13
1
vote
1 answer

Translate MouseEvent coordinates to GraphStream's element coordinates

tl;dr how to get closest GraphicElement coordinates given MouseEvent coordinates? I created a big graph that represents the road map of a certain region using Graphstream and I'm trying to find the closest node to an occuring MouseEvent. My problem…
Kfir Ettinger
  • 584
  • 4
  • 13
1
vote
2 answers

override graphstream's DefaultMouseManager

I'm using GraphStream to show a map of an area and I've tried to inherit from the default MouseManager DefaultMouseManager and to override the mouseClicked method so that when clicking on a node the following will happened: node's color will…
Kfir Ettinger
  • 584
  • 4
  • 13
1
vote
0 answers

Canvas flickering when custom drawing is overlayed on top of graph with Graphstream

I'm experiencing a rendering/painting issue with a simple drawing of a line in Swing when it is applied to a component which contains an already existing graph created using Graphstream. Issue is when the mouse is dragged and painting method called,…
1
vote
0 answers

Loading and parsing file and displaying said file as graph with Java GraphStream

The loading and parsing of the file proceeds without an obvious problem but the ViewPanel in which I try to display the graph does not show immediately when initiating the action that should lead to this. Instead the container in which the ViewPanel…
Bogo
  • 11
  • 1
1
vote
2 answers

Show the names of nodes and edges using GraphStream in scala

I am working on creating a graph using GraphStream in Scala. A small verison of the code is the following : val graph = new SingleGraph("Tutorial 1") graph.addNode("A") graph.addNode("B") graph.addNode("C") graph.addEdge("AB",…
Mehdi
  • 77
  • 11
1
vote
1 answer

Displaying a graphstream Path

I have a graphstream graph, and each node and edge has some attributes. I then use the following code to get the shortest path between two nodes: AStar astar = new AStar(graph); astar.setCosts(new…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
1
vote
1 answer

graphstream FileSinkSVG2

I am creating a graph with graphstream and writing the result to an svg-file using FileSinkSVG2. Works well. The only problem is that arrows at the end of the edges are not showing up as they should according to the css defintion. Any suggestions?…
Ramin Ziai
  • 11
  • 1
1
vote
1 answer

How to Store data in graphs using Inheritance with GraphStream

In the GraphStream tutorial titled Storing, retrieving and displaying data in graphs it states:- Other ways to store data on graphs Sometimes you want to create your own graph structure and inherit the Node and Edge classes to create your own. In…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
1 answer

How to detect user interaction with graphstream?

I am investigating the use of GraphStream on Android using api 'com.github.graphstream:gs-ui-android:2.0-alpha' api 'com.github.graphstream:gs-core:2.0-alpha' I have managed to construct and display my Graph fine, However I cannot see how to listen…
Hector
  • 4,016
  • 21
  • 112
  • 211
1
vote
1 answer

How to store Graph in a text file using Graphstream

I know how to handle graphs using matrices and linked list. I am new to Graphstream. I want to know is there any in-built function in Graphstream in java to store/Read Graph type graphs in text files and what is the format of storing such graphs in…
1
vote
1 answer

More readable graph in GraphStream - JAVA

I am working on application by using GraphStream Library. So far I have implemented Dijkstra's Shortest Path Algorithm. My graph is working fine but the readability of graph is not what I was expecting. Here is the screen shot of graph : As you…
Noob Player
  • 279
  • 6
  • 25
1
vote
2 answers

Exception on Multigraph in graphstream

I am working to show two edges on two nodes if there are more than one edge. I am following this example. But I am facing an exception: Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/convert/WrapAsScala at …
Noob Player
  • 279
  • 6
  • 25