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
1
vote
1 answer

Streaming Graph to Gephi using toolkit : NullPointerException

I'm trying to create a normal graph and stream it to Gephi GUI using the Gephi toolkit. I am following the the toolkit and the streaming plugin tutorials. I am having difficulty getting my code to work because the lookup API is not returning valid…
user1727270
  • 303
  • 1
  • 3
  • 10
1
vote
1 answer

Displaying Parallel Edges in Graphstream

I have a multigraph, and I would like to be able to see each edge that goes from one vertex to another clearly. For example, when I have a graph with 2 vertices, and 2 edges going from the first to the second, I would like to see 2 arrows going from…
Benedict Lee
  • 714
  • 8
  • 21
1
vote
0 answers

Weird behavior with Graphstream Mouse Listener and Swing JMenuBar

I'm making a program which creates and displays graphs. I have a class which handles a graph and implements a mouse listener (Graphstream ViewerListener). In order to grab the events, you need to use a loop and call a pump() method until you're…
Neskio
  • 11
  • 2
1
vote
1 answer

GraphStream - Problems using netstream

I'm using a standard example, given in the following code, but the java application returns the following error: [//NetStreamDecoder | NetStreamReceiver: Don't know this command: 0] I've been compiling the java example with: javac -cp…
jackb
  • 695
  • 8
  • 26
0
votes
0 answers

Graphstream Style lost after zoom

I try to set the Style of a Graph after the viewer (FxViewer) is created. This works and I do it just like this viewGraph.removeAttribute("ui.stylesheet"); if(showOnlyMatchingNodesFlag && showOnlyMatchingEdgesFlag) { …
Niclas183
  • 1
  • 1
0
votes
0 answers

Java - GraphStream node modified event listener

In my code, I have a listener on mouse released, and in there, I have a snippet like this: for (Node n : gs){ Object o = n.getAttribute("ui.selected"); if (o != null && (Boolean)(o)){ nodes[num++] =…
0
votes
0 answers

Swing's StyleGroupSet ConcurrentModificationException

I'm using Swing gui with my project with GraphStream's graph in it (not sure if it is relevant), and I keep getting ConcurrentModificationException exception from Swing's StyleGroupSet class. How can I avoid it? this is the exception's…
0
votes
1 answer

Prevent imported libraries from using my logging-configuration file

Hostile takeover of my logger !! TL:DR imported library is using my logger's logging.properties file. In order to keep track of everything that happens in my project, I implemented a custom logger class using java.utils.logging, with a nice simple…
Kfir Ettinger
  • 584
  • 4
  • 13
0
votes
1 answer

GraphStream setAttribute( ) vs addAttribute( )

I don't understand the difference between setAttribute( ) and addAttribute( ) in GraphStream1.3. In GraphStream's Element API 1.3 it's explained that setAttribute is Like addAttribute() but for consistency. what does it means?
Kfir Ettinger
  • 584
  • 4
  • 13
0
votes
1 answer

GraphStream & Swing - Can't display my graph correctly

I'm a beginner with GraphStream and Swing, I would like to insert a Graph in a JPanel, but while trying I get the following display: Main Frame I added a graph.display() in the code to see if the problem came from the graph but it seems to display…
0
votes
1 answer

Get GraphicEdge at Mouse hovering in GraphStream

I want to show the weight of an edge when the mouse hovers over it. So I use an MouseEvent.MOUSE_MOVED in my implemented MouseManager. With nodes, I just can call view.findGraphicElementAt(getManagedTypes(), event.getX(), event.getY()) to get the…
0
votes
1 answer

org.graphstream.ui.layout.LayoutRunner run INFO: Layout 'SpringBox' process stopped. Is it a problem?

I use GraphStream in my application and to show graphs I use a FXViewer for every graph. Initially I want to show the different graphs, without setting positions of nodes, so I use the enableAutoLayout() method: ArrayList viewers = new…
GRETA
  • 61
  • 5
0
votes
1 answer

Graphstream (Android) - not able to display graph in fragment

I am a beginner in Android development. I am trying to study the use of Graphstream (https://graphstream-project.org) in an android app. I have created a basic activity with a drawer layout which includes a navigationview and frame layout where I…
Jemshid
  • 15
  • 4
0
votes
0 answers

Creating a .jar file in IntelliJ

I have a project that uses GraphStream (http://graphstream-project.org/) it's just a normal project (not Maven or Gradle). I seem to be able to include GraphStream, but whenever I try to make a .jar file Error: A JNI error has occurred, please check…
user12208476
0
votes
2 answers

Visualize graphs in java

I'm currently working on a university project to implement simple graph algorithms in java (https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)) and I'm struggling to find a simple solution to export my created graphs into a image file…
Nexiliath
  • 13
  • 2