GML Parser for GraphsGML is a simple and extendible file format to store graphs with any kind of additional information.Example for GML FormatHere is an example of a graph in GML format. The graph has three nodes 1, 2, and 3, and three edges connecting 1 and 2, 2 and 3, and 3 and 1.# This is a comment. graph [ # Lists start with '['. directed 1 # This is a directed graph (0 for undirected). # The following is an object of type string. # It will be ignored unless you specify a rule for graph.text. text "This is a string object." node [ id 1 ] # This defines a node with id 1. node [ id 2 ] node [ id 3 ] edge [ # This defines an edge leading from node 1 to node 2. source 1 target 2 ] edge [ source 2 target 3 ] edge [ source 3 target 1 ] ] # Lists end with ']'. The data type It is also possible to use the GML parser for Graphs directly. It provides easy to use means to extend and adapt it for special needs. Example of how to use GML format and native graph file format Strength
Disadvantage
Tips
|
See also:Manual Entries: |