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
7
votes
0 answers

How to draw an hierarchical tree using graphstream

This is my code and the output is not in the form of an hierarchical tree public class Simple { public static void main(String[] args) { Graph graph = new SingleGraph("Test"); Viewer viewer = graph.display(false); …
Sandy
  • 71
  • 3
4
votes
1 answer

GraphStream 2.0 mouse pointer offset when dragging nodes (not solved)

I'm working with GraphStream and I can't get the mouse pointer to drag nodes correctly. (Note how the mouse offset gets worse towards the bottom right corner). This looks like exactly the same problem as here (similar to this, only for Swing…
traveh
  • 2,700
  • 3
  • 27
  • 44
4
votes
4 answers

How to zoom into a GraphStream View?

In GraphStream visualizations Graphs can be dense. The enableAutoLayout method gives a global visualization of the Graph and so zooming is needed. How to zoom into a GraphStream View? Graph go=...; Viewer viewer = new Viewer(go,…
AbdelKh
  • 499
  • 7
  • 19
4
votes
1 answer

How to draw graph inside swing with GraphStream actually?

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…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
3
votes
0 answers

Make Graphstream render only what changed

I created a graph that represents the road map of a certain region using Graphstream. Now I want to make it look like the blue node is moving on the graph and for that I'm showing the graph on another thread and, every second, I color a different…
Kfir Ettinger
  • 584
  • 4
  • 13
3
votes
1 answer

Graphstream rendering disappears sporadically when displayed in docked panel of IntelliJ

I'm integrating graphstream (www.graphstream-project.org) into JetBrains MPS (i.e. IntelliJ). The Graphs are displayed in a "tool window" of IntelliJ (the panels on the side, see screenshot). If the panel is in "floating" mode (not docked) this…
Till F.
  • 189
  • 1
  • 9
3
votes
1 answer

Visualization of graph

I have simple program that simulates distributed environment. I want to visualize processor behaviour by using GraphStream library. Each processor is a thread, they do some computations, but not all the time, only when I set the switch variable…
whd
  • 1,819
  • 1
  • 21
  • 52
3
votes
1 answer

GraphStream: Interactive Web Application

I'm trying to develop an interactive web application using GraphStream. The idea is to run a couple of community detection algorithms on graphs and visualize them. I wish to use D3.js as graph rendering framework and use GraphStream library in a…
adsun
  • 773
  • 9
  • 30
3
votes
1 answer

How to display graph generated with graphstream inside a JavaFX GUI Component?

I've been trying to display Graph generated with GraphStream in a GUI which is made using JavaFX.Here is what I have so far Graph graphInit = new Graph(); //class that handles graph population SingleGraph graph = new SingleGraph("Graph");…
nirajftw
  • 51
  • 5
3
votes
2 answers

How to draw nodes and edges on a custom java swing component that extends JPanel with GraphStream (or another library)?

I'm creating a user interface for a java swing program that should be able to allow the user to create a network of nodes, connected by edges. The user is allowed to label those nodes and edges. The UI currently has a custom graphical component that…
milez
  • 2,201
  • 12
  • 31
3
votes
0 answers

Graphstream with Icons in same order

I need some help to use icons on my graph. To be exact I need two things: Icons as nodes. Icons beside the nodes. So I need the things shown in the first and last picture at the top row from the this tutorial. I think I have to write a stylesheet…
2
votes
0 answers

graphStream image fill

I'm trying to fill Graphstream's Node with an image and for some reason it dosen't work. this is my demo code: import org.graphstream.graph.*; import org.graphstream.graph.implementations.*; public class test { public static void main(String…
Kfir Ettinger
  • 584
  • 4
  • 13
2
votes
2 answers

Retrieving node/edge with mouse events

I'm following the official GraphStream tutorial, and as the title suggest - I'm trying to get node's by clicking on it. this is my code so far: import org.graphstream.graph.*; import org.graphstream.graph.implementations.*; public static void…
Kfir Ettinger
  • 584
  • 4
  • 13
2
votes
1 answer

GraphStream - No valid display found

I'm following this official tutorial of graphStream. And I'm trying to run this example code taken from there: import org.graphstream.graph.*; import org.graphstream.graph.implementations.*; public class Tutorial1 { public static void…
Kfir Ettinger
  • 584
  • 4
  • 13
2
votes
1 answer

Multiple views on same graph with different styles

I am trying to compare outputs of community detection algorithms and I would like to do a side-by-side comparison. The idea is, that I will have two windows showing the same layout of the graph and I colour nodes and edges based on the selected…
Jakub Peschel
  • 135
  • 1
  • 8
1
2 3 4 5 6 7 8