I know how to handle graphs using matrices and linked list. I am new to Graphstream. I want to know is there any in-built function in Graphstream in java to store/Read Graph type graphs in text files and what is the format of storing such graphs in a file?
Asked
Active
Viewed 881 times
1 Answers
2
Reading files using FileSource
lists the file formats supported by concrete implementations of FileSource
. It outlines the use of readAll()
, as well as reading event-by-event from certain formats.
- DGS (GraphStream)
- DOT (GraphViz)
- GML
- TLP (Tulip)
- NET (Pajek)
- GraphML
- GEXF (Gephi)
In particular, The DGS File Format Specification describes DGS, the default GraphStream text file format. In outline, a FileSource
connects a file to a graph:
Graph g = …;
FileSource fs = …;
fs.addSink(g);
fs.readAll(…);
Can I get some sample DGS file online storing big
Graph
?
Some small examples are shown here; a large example of the road network of Le Havre, France is cited here.

trashgod
- 203,806
- 29
- 246
- 1,045
-
Thank you so much! It helped me. I wonder can i get some sample DGS file online storing big Graph? – Twinkle singhal Sep 16 '17 at 14:30
-
1We have a couple of graphs here for testing https://data.graphstream-project.org/pub/dataset/ – zer0chain Sep 17 '17 at 00:28
-
More above on the Le Havre data cited by @zer0chain. – trashgod Sep 17 '17 at 01:03