GDL: Basics<>index

Keywords

» A graph is specified by

   graph: { graph entries:
            nodes, edges, subgraphs, attributes }

» A node is specified by

   node: { title: "node title"  node attributes }

» An edge is specified by

   edge: { source: "source node title"
           target: "target node title"
           edge attributes }

Labels

» Text displayed within a node

  • The node title or
  • Any valid C string specified by
    label: "one or several line(s) of text"

» Edge label

  • Any valid C string specified by
    label: "one or several line(s) of text"

Example (see slide)

   graph: {
   node: { title: "a"  label: "aiSee" }
   node: { title: "G"
           label: "Graph\nDescription\nLanguage" }
   node: { title: "AbsInt" }

   edge: { source: "AbsInt"  target: "a"
           label: "Graph Visualization"  }
   edge: { source: "AbsInt"  target: "G" }
          }

Hints

» All node titles have to be unique.

» Node titles are case-sensitive:

   node: { title: "aisee" }   // is not equal to
   node: { title: "aiSee" }

» Titles and labels may contain ASCII control characters:

   node: { title: "hello\nworld" }   // is equal to
   node: { title: "hello
   world" }

   node: { title: "\"Hello world!\", he said" }

» C-style comments:

   node: { title: "2+2=7" /*think again*/ label: "2+2=4" }

» C++-style comments:

   node: { title: "Humpty-dumpty" }  // sat on the wall
   node: { title: "humpty-dumpty" }  // did a great fall

» Word spacing does not matter:

   node:  { title  :  "ic" }   // is just as good as
   node:{title:"ic"}

     However,

  • The colon ':' may not be separated from the keywords graph: , node: , and edge:
    node: { title : "yeah" }   // this is OK
    node : { title: "oops" }   // this won't work
  • Quoted strings (e.g. titles and labels) are still sensitive:
    node: { title: "try this" }   // is never the same as
    node: { title: "  try  this" }

» A graph title can be specified by

   graph: { title: "My Family Tree"
          /* specifying a title is
             mandatory for subgraphs */
          }

» There is always only one top-level graph

» If edge labels are not displayed, specify

   display_edge_labels: yes

» aiSee understands the following alternative notations:

   sourcename:        // instead of source:
   targetname:        // instead of target:
   displayedgelabels: // instead of display_edge_labels:

» Next: Node shapes and line styles
» Prev.: Introduction
» Index

HomeSitemapai
Last modified on 13 November 2002 by webmaster. © 2002 AbsInt.
URL: http://www.aisee.com/gdl/nutshell/basics.htm


Home
About
Examples
Free trial

 Help
» FAQs
» Quick Guide
» User Manual
» GDL
» Options
» Changelog
» GDLedit

Store
Legal
Contact
Extras
Sitemap