如何使用 Graphstream 将 Graph 存储在文本文件中
How to store Graph in a text file using Graphstream
我知道如何使用矩阵和链表处理图形。我是 Graphstream 的新手。我想知道 Graphstream 在 java 到 store/Read Graph 中是否有任何内置函数在文本中键入图形文件以及将此类图形存储在文件中的格式是什么?
Reading files using FileSource
lists the file formats supported by concrete implementations of FileSource
。它概述了 readAll()
的使用,以及从某些格式中读取 逐个事件 。
- DGS(图形流)
- DOT(图形可视化)
- GML
- TLP(郁金香)
- NET(帕耶克)
- GraphML
- GEXF(Gephi)
特别是,The DGS File Format Specification 描述了默认的 GraphStream 文本文件格式 DGS。概括地说,FileSource
将文件连接到图形:
Graph g = …;
FileSource fs = …;
fs.addSink(g);
fs.readAll(…);
Can I get some sample DGS file online storing big Graph
?
显示了一些小例子here; a large example of the road network of Le Havre, France is cited here。
我知道如何使用矩阵和链表处理图形。我是 Graphstream 的新手。我想知道 Graphstream 在 java 到 store/Read Graph 中是否有任何内置函数在文本中键入图形文件以及将此类图形存储在文件中的格式是什么?
Reading files using FileSource
lists the file formats supported by concrete implementations of FileSource
。它概述了 readAll()
的使用,以及从某些格式中读取 逐个事件 。
- DGS(图形流)
- DOT(图形可视化)
- GML
- TLP(郁金香)
- NET(帕耶克)
- GraphML
- GEXF(Gephi)
特别是,The DGS File Format Specification 描述了默认的 GraphStream 文本文件格式 DGS。概括地说,FileSource
将文件连接到图形:
Graph g = …;
FileSource fs = …;
fs.addSink(g);
fs.readAll(…);
Can I get some sample DGS file online storing big
Graph
?
显示了一些小例子here; a large example of the road network of Le Havre, France is cited here。