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

Better graph visualization in GraphStream - JAVA

I am working on GraphStream Library for java. But I am facing a problem here. I tried to query 10,000 records having 2 columns from database. And the graph create 2 nodes and one edge for each row. But when I try to run the program, the graph looks…
Noob Player
  • 279
  • 6
  • 25
1
vote
1 answer

Add GraphStream graph into my custom jPanel

I am working on GraphStream library. For now, When I run my program it opens new window for my graph and separate window for my graph. I tried to create a JFrame and add JPanel into JFrame, after all this I tried to add graph into my JPanel but it…
Noob Player
  • 279
  • 6
  • 25
1
vote
0 answers

Multi edge graph in GraphStream

How can I create an undirected graph, where 2 vertices are connected with multiple parallel edges? I've seen a similar question here Displaying Parallel Edges in Graphstream , but this didn't help. I still had only one edge between 2…
Alina H.
  • 21
  • 1
  • 6
1
vote
0 answers

Algorithms to draw graphs with a high child to parent ratio

I am working on a visualization tool for an excel document containing a relatively large amount of business requirements (70 data elements). The purpose is to show some of the internal structures of the data which is not immediately obvious when…
user2041427
  • 81
  • 2
  • 11
1
vote
1 answer

Removing bi-directional unique rows from text file

I have a text file as follows: 1 3 2 5 3 6 4 5 5 4 6 1 7 2 The above file represents the edges in an undirected graph. I want to remove the duplicate edges in the graph. In the above given example I want to remove either 4,5…
Yasir Arfat
  • 645
  • 1
  • 8
  • 21
1
vote
1 answer

Override hashCode() of Graphstream

How do I override the hashCode() of the Graphstream Node object? I am inserting the Nodes into a HashSet. HashSet set = new HashSet();
Quaxton Hale
  • 2,460
  • 5
  • 40
  • 71
1
vote
1 answer

Swapping nodes and adding new edges showing weird behaviour in GraphStream

I am trying to create a simulation of Traveling Salesman Problem and for this I am using GraphStream library. I have a class CreateGraph which is responsible for creating and maintaining graph. As a part of simulation I have to swap two cities…
Deepanshu
  • 488
  • 6
  • 18
1
vote
0 answers

graph stream mouse button clicks wont work

I am using graphstream with my swing application causing a lot of problem... public class Clicks implements ViewerListener{ protected boolean loop = true; public Clicks() { Graph graph = new SingleGraph("Clicks"); graph.addNode("A"); …
1
vote
1 answer

Unable to execute Java GUI from command like sporatically

I have a GUI application built with Swing and a 3rd party graphing library called GraphStream (there are 2 JARs to include). This is probably a classpath issue, and independent of the library itself. When I run from Eclipse, the GUI appears and…
Jmoney38
  • 3,096
  • 2
  • 25
  • 26
1
vote
1 answer

Thread.sleep() freezes JFrame/GUI containing GraphStream graph

My JFrame containing an embedded single graph (Graphstream) freezes when I try to update it in a loop that calls Thread,sleep(). I have tried using the same update on a standalone-graph (displayed on it's own) and it works as expected. I have a…
Korogba
  • 105
  • 9
1
vote
0 answers

Reading from GEXF using GraphStream (Not a regular file error)

I am trying to reproduce this example of reading a GEXF file using GraphStream, but it gave me this error message : Exception in thread "main" java.io.IOException: not a regular file 'sources\small-world-1.gexf' at…
user1885868
  • 1,063
  • 3
  • 17
  • 31
1
vote
0 answers

Graphstream java applet

I'm trying to integrate the graphstream library into my java applet. The applet works on Eclipse and when I use the appletviewer utility but when I run the html file with the applet embedded, it only renders grey screen. Here's the error that I get…
hypergamer003
  • 193
  • 1
  • 2
  • 11
1
vote
1 answer

Creating random graphs using GraphStream Library

I have been coding a little with GraphStream library for a while now, and I want to create a random graph. Here is how I proceeded: Create a graph Create a random number generator, in my case, generates any number from 3 to 1000 Create a node and…
george24
  • 331
  • 1
  • 3
  • 11
1
vote
2 answers

GraphStream nodes with input and output ports

I'd like to model a graph in GraphStream and render it with its Viewer, but my nodes need to have distinct input and output ports (preferably on the left-hand and right-hand side of the node box, respectively), and edges should connect with those…
Wouter Lievens
  • 4,019
  • 5
  • 41
  • 66
1
vote
1 answer

Save graph with graphstream

In my java project I'm using graphs with this library "graphstream". I need to save my graph in a type file "Graphviz Dot", i.e.: nodes, edges, node attributes, edge attributes. I usually do in this way to save my graph in the file: Graph graph =…
user3676015
  • 53
  • 1
  • 11