Public Member Functions | |
void | addHeaderProperty (String key, String value) |
void | defineAdditionalEdgeLines (Collection additionalEdgeLines) |
void | defineAdditionalNodeLines (Collection additionalNodeLines) |
void | generateFrom (DoubleLinkedDAG source) |
Collection | getGMLCode () |
Protected Member Functions | |
void | addProperties (Properties props, Collection lines) |
void | generateEdgeProps (DoubleLinkedDAGNode from, DoubleLinkedDAGNode to, Properties props) |
void | generateNodeProps (DoubleLinkedDAGNode node, Properties props) |
Protected Attributes | |
Collection | additionalEdgeLines |
Collection | additionalNodeLines |
These lines are added to each node definition. | |
ArrayList | edgeLines |
List of strings, contains all text lines for the edges. | |
Properties | headerProps = new Properties() |
ArrayList | nodeLines |
List of strings, contains all text lines for the nodes. | |
Static Protected Attributes | |
static String | EDGE_FOOTER = "]" |
static String | EDGE_HEADER = "edge [" |
static String | GRAPH_FOOTER = "]" |
static String | GRAPH_HEADER = "graph [" |
static String | KEY_ID = "id" |
static String | KEY_LABEL = "label" |
static String | KEY_SOURCE = "source" |
static String | KEY_TARGET = "target" |
static String | NODE_FOOTER = "]" |
static String | NODE_HEADER = "node [" |
A graph in the GML portable graph file format.
GML is a text-based file format for storing graphs. This class encapsulates this this textual representation.
GML: see http://www.infosun.fim.uni-passau.de/Graphlet/GML
Definition at line 37 of file GMLGraph.java.
void utils.GMLGraph.addHeaderProperty | ( | String | key, |
String | value | ||
) | [inline] |
This property is added to the header of the GML graph.
In other words, the property is a key-value pair in the top level of the graph.
Definition at line 70 of file GMLGraph.java.
void utils.GMLGraph.addProperties | ( | Properties | props, |
Collection | lines | ||
) | [inline, protected] |
Definition at line 157 of file GMLGraph.java.
void utils.GMLGraph.defineAdditionalEdgeLines | ( | Collection | additionalEdgeLines | ) | [inline] |
Set lines of GML code which are added to each GML edge definition.
Definition at line 84 of file GMLGraph.java.
void utils.GMLGraph.defineAdditionalNodeLines | ( | Collection | additionalNodeLines | ) | [inline] |
Set lines of GML code which are added to each GML node definition.
Definition at line 77 of file GMLGraph.java.
void utils.GMLGraph.generateEdgeProps | ( | DoubleLinkedDAGNode | from, |
DoubleLinkedDAGNode | to, | ||
Properties | props | ||
) | [inline, protected] |
Definition at line 174 of file GMLGraph.java.
void utils.GMLGraph.generateFrom | ( | DoubleLinkedDAG | source | ) | [inline] |
Generates the GML code representing source.
Definition at line 91 of file GMLGraph.java.
void utils.GMLGraph.generateNodeProps | ( | DoubleLinkedDAGNode | node, |
Properties | props | ||
) | [inline, protected] |
Definition at line 166 of file GMLGraph.java.
Collection utils.GMLGraph.getGMLCode | ( | ) | [inline] |
Returns the complete GML code.
The resulting lines of code can be written to a file. The resulting file is a complete GML file.
Definition at line 144 of file GMLGraph.java.
Collection utils.GMLGraph.additionalEdgeLines [protected] |
Definition at line 62 of file GMLGraph.java.
Collection utils.GMLGraph.additionalNodeLines [protected] |
These lines are added to each node definition.
Definition at line 60 of file GMLGraph.java.
String utils.GMLGraph.EDGE_FOOTER = "]" [static, protected] |
Definition at line 44 of file GMLGraph.java.
String utils.GMLGraph.EDGE_HEADER = "edge [" [static, protected] |
Definition at line 43 of file GMLGraph.java.
ArrayList utils.GMLGraph.edgeLines [protected] |
List of strings, contains all text lines for the edges.
Definition at line 57 of file GMLGraph.java.
String utils.GMLGraph.GRAPH_FOOTER = "]" [static, protected] |
Definition at line 40 of file GMLGraph.java.
String utils.GMLGraph.GRAPH_HEADER = "graph [" [static, protected] |
Definition at line 39 of file GMLGraph.java.
Properties utils.GMLGraph.headerProps = new Properties() [protected] |
Definition at line 51 of file GMLGraph.java.
String utils.GMLGraph.KEY_ID = "id" [static, protected] |
Definition at line 46 of file GMLGraph.java.
String utils.GMLGraph.KEY_LABEL = "label" [static, protected] |
Definition at line 47 of file GMLGraph.java.
String utils.GMLGraph.KEY_SOURCE = "source" [static, protected] |
Definition at line 48 of file GMLGraph.java.
String utils.GMLGraph.KEY_TARGET = "target" [static, protected] |
Definition at line 49 of file GMLGraph.java.
String utils.GMLGraph.NODE_FOOTER = "]" [static, protected] |
Definition at line 42 of file GMLGraph.java.
String utils.GMLGraph.NODE_HEADER = "node [" [static, protected] |
Definition at line 41 of file GMLGraph.java.
ArrayList utils.GMLGraph.nodeLines [protected] |
List of strings, contains all text lines for the nodes.
Definition at line 54 of file GMLGraph.java.