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

graphstream: FileSinkImages to png doesn't work well with parallels edges

I'm trying to plot an image using FileSinkImages: FileSinkImages pic = new FileSinkImages(OutputType.png, Resolutions.HD720); pic.setLayoutPolicy(LayoutPolicy.COMPUTED_FULLY_AT_NEW_IMAGE); pic.setQuality(Quality.HIGH); pic.writeAll(graph,…
GinoC
  • 442
  • 4
  • 16
0
votes
1 answer

Find the hidden nodes between two nodes - graph - java

My English is not very well, BUT I will try my best to explain my issue here. I am working on an application in which I have to create graph. For now I am using GraphStream. Requirements for my graph is very complicated, which is : I have a table…
Noob Player
  • 279
  • 6
  • 25
0
votes
0 answers

Show the graph only when rendering is done - GraphStream JAVA

I am working on java with GraphStream library. For now, all is working fine, BUT when I try to run the program the graph starts rendering in front of me and then after rendering it stops and when I try to move any node, it starts rendering again…
Noob Player
  • 279
  • 6
  • 25
0
votes
2 answers

All the nodes gathered at one place - GraphStream - JAVA

I am working on GraphStream Library for java. But I am facing a problem here. When I try to get the nodes from the DB Table it shows the data along with edges on JPanel but at first, when program starts, it gathered all the nodes at one place like…
Noob Player
  • 279
  • 6
  • 25
0
votes
1 answer

GraphStream rendering node and edges slow

I am working on GraphStream showing data from database. But it creates node and edges very slow. I am using this very basic example. Here is my code: public class GraphExplore { static Connection conn2; static String result, result2; …
Noob Player
  • 279
  • 6
  • 25
0
votes
0 answers

Graphstream MultiGraph to SingleGraph at runtime (and vice-versa)

I've only started using Graphstream a couple of weeks ago, and so far it is working pretty well, but I have one issue that I have not been able to solve: I am displaying data which for smaller datasets is nice to view as a MultiGraph, and for larger…
DaveA
  • 1
  • 2
0
votes
0 answers

Sort Nodes by an attribute in Graphstream

I am trying to sort a collection of nodes of Graphstream by an attribute. I am not sure how this can be done. Collection function (Graph graph){ BetweennessCentrality bcb = new BetweennessCentrality(); bcb.init(graph); …
AbdelKh
  • 499
  • 7
  • 19
0
votes
2 answers

How to use the GraphStream library for Scala

I tried to use the GraphStream library to find the shortest path between 2 nodes in a graph. At the end I'm able to print the edges of the path (it.foreach(println)) but I can't access one element at the time. This is the code: import…
Stefano Sandonà
  • 619
  • 3
  • 9
  • 18
0
votes
1 answer

Collapsing nodes in Graphstream

Is there anyway I can collapse a certain number of nodes in a graph using graphstream? I have tried adding ui.hide attribute,but that is not what I want. Ideally I would want a + sign on the first node that is collapsed and then when I click on the…
Kaarthik
  • 627
  • 2
  • 12
  • 32
0
votes
0 answers

Strange behavior of graph stream

I am developing an application using the GraphStream library. When using the standard viewer of the library every thing is normal (click inside a node to manipulate it). When i am embedding it in my application, it act very strange. to…
targat
  • 25
  • 8
0
votes
0 answers

Draw a graph in a JFrame with GraphStream

I am trying to create a graph using the GraphStream API. I want to add some visual effects on top of the graph Layout drawn with the API, so I plan to embed the graph in a JFrame. I read this post here (How to draw graph inside swing with…
0
votes
1 answer

Graphstream view not loading

Well, i have the following schemas: A Java class that extends JFrame instantiating the other class that contains my graph which returns a blank screen. The second a normal class with the method main inside of it, calling the same class that…
GoldenMedal
  • 102
  • 2
  • 9
0
votes
1 answer

Graphstream small inside jframe

i'm trying to change the size of a graph that is inside a graphstream but its failing and getting even small. This is my code. At first, i couldnt set a window title so my only option was to create a JFRAMe and embedded the view inside of it. So, if…
PlayMa256
  • 6,603
  • 2
  • 34
  • 54
0
votes
1 answer

Retrieve Connected Components Graphstream

I am using GraphStream in a project and my problem is that I want to retrieve the list of connected components but I only get either their count or at the very best their Ids. I have tried this code but it doesn't return anything…
user1885868
  • 1,063
  • 3
  • 17
  • 31
0
votes
1 answer

GraphStream graph not rendered corectly

I have the following code while trying to display a graph in a form. For 3 nodes the code works well but after adding other nodes the graph is not showed entirely. I have no idea where the problem can be. public class Test{ public static void…
Amrida D
  • 329
  • 1
  • 5
  • 17