The Graph Description Language (GDL) of the VCG tool describes graphs that consist of subgraphs, nodes, and edges. The GDL syntax supports special kinds of edges (e.g., nearedge) that control the graph layout. Attributes are key-value pairs. Default attributes and redefinition of default attributes for edges and nodes are supported as well. Nodes are identified with an obligatory label attribute. Edges must have sourcename and targetname attributes that refer to the nodes' labels. GDL has a very rich set of predefined attributes. The core of GDL is compatible to GRL, the specification language of the Edge graph editor.

The following gives a code example that contains two nodes (called 'one' and 'two') that are connected with an edge. The edge is colored red.

  graph: {
    node: { title: "one" }
    node: { title: "two" }
    edge: { sourcename: "one" targetname: "two"
            color: "red" }

(Quoted from ExchangeFormatBibliography)


-- HolgerKienle

Revision: r1.1 - 29 Aug 2001 - 22:30 - TWikiGuest
Transform > GraphDescriptionLanguage
Copyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback