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
0
votes
1 answer

NullPointerException at org.graphstream.algorithm.APSP$APSPInfo.getShortestPathTo - Graphs problem

I'm developing an algorithm to find the best route between two airports. I came across the concept of All Pairs Shortest Path (APSP) and the GraphStream library. The content is read from a text file. Each line represents an airline…
Rasshu
  • 1,764
  • 6
  • 22
  • 53
0
votes
1 answer

How to partially auto-layout a graphstream graph

If I have some fixed co-ordinates for some nodes in a Graphstream graph, can I get Graphstream to "fill in the gaps" and auto-layout those nodes that don't have a manually specified location? for example: Node n1 =…
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
0
votes
0 answers

Graphstream view disappears when zooming

When I'm zooming the graph, half of it disappear. I've tried to modify the ViewPort without any result. This is the code. public static void printGraph(final Program program) { final ViewPanel graphViewNew; final Dimension dim =…
0
votes
2 answers

render a graphstream graph into javafx

The idea is to show a graphstream graph embedded in a Javafx simple GUI. There is not much info on the net about this. graphstream has a github (which has a lot of errors like not finding the gs-algo in maven) and the code produces errors. I created…
George Violettas
  • 334
  • 1
  • 14
0
votes
1 answer

java. grapgstream: disparition edges problem

I am using graphstream library in order to build an application. When i zoom the graph, using view.getCamera().setPercent(), some nodes will be hidden, until now there no problem. My problem is when tow nodes connected by an edge are hidden after…
0
votes
1 answer

How to attach an AttributeChangedListener to a Graph from Graphstream?

I need to change attributes of nodes and edges over time. The time is split into timeperiods, every timeperiod looks the same: Check every node and edge for possible changes and edit attribute if necessary. Specifically there are numeric attributes…
0x4b50
  • 629
  • 6
  • 18
0
votes
1 answer

How to check if a node is already exist

I want to check if the node is already exist in the graph before adding a new node. I tried to do it using a foreach loop.But it didnt work. boolean returnVal = false; for (Node node : displayGraph) { if…
Samasha
  • 369
  • 1
  • 5
  • 16
0
votes
0 answers

java - Graphstream viewer does not appear

I am working with graphstream library in order to build a visualization graph application with java. I want to load a graph in a class extended from jframe. The problem is that the documentation that i found is old, and i did not find other…
0
votes
1 answer

how to create a node by touch in android studio with api Graphstream?

I'm trying to get it when I click on the screen to create a node, but through Viwerpipe the only thing I could do was delete a node that was already created. public class Activity_TestManySprite extends Activity implements ViewerListener { …
0
votes
0 answers

How to create a touch event in a fragment for add/delete nodes(with grathstream)?

I'm creating an application that creates graphs (nodes and edges), I wanted to implement a touch method to create the node, but I'm having difficulty, because when I touch the canvas to add the node it does not work, but if I click the bottom menu…
0
votes
1 answer

How to Detect if Multiple Nodes Exist in GraphStream

This is a pretty obscure question since I don't see many people fawning over GraphStream, but does anyone know how to detect if a node exists in the graph if it has been inserted? For example, if I write graph.addNode(vertex1); I get an error. If I…
0
votes
1 answer

Add button on GraphStream using Java

My code works like this and directly print all the edges of graph, but I want to add button on click direct at my Graph Stream window, and when I click one time on that one line of the graph is printed, than when I click again another line is…
0
votes
1 answer

Can a GraphStream Node be an href link?

Is it possible to assign a href/url attribute to a GraphStream Node such that when it's click, a new browser/tab opens to the specified URL?
WishIWasJeeping
  • 173
  • 2
  • 11
0
votes
1 answer

How to remove nodes with java API for graphstream?

I currently use the Graphstream API for Java for my project. I wan't to delete or add Nodes on command. With JFrame & co. I initialized a console so I can just insert "addNode()" or "removeNode(id)" in order to get the result. A Interface shows the…
Zwuedus
  • 1
  • 1
0
votes
1 answer

Importing GraphStream library in Android Studio

I've imported the gs-ui-android and gs-core-2.0-alpha modules and they are reflected in the settings.gradle as well. Also included these in gradle app module implementation files(':gs-ui-android') implementation files(':gs-core-2.0-alpha') Also…
Simra
  • 3
  • 1
  • 5