Tulip graph format

Nodes

The nodes are stored with a list of indices. The indices must be non negative integers. Syntax:

(nodes id_node1 id_node2 ...)

Sample:

(nodes 0 1 2 3 4 5 )

Edges

An edge is defined by providing three non negative integers. The first is the id of the edge, the second is the id of source node of the edge and the third is the id of target node of the edge.

Syntax:

(edge id id_source id_target)

Sample:

(edge 2 2 1)

It defines one edge with the node that has the id 2 as source and the node that has the id 1 as target.

Clusters

A cluster is defined by an integer which represent the cluster id, one string which is the name of the cluster(Two clusters can have the same name). Then it is define with a list of nodes and a list of edges. To define a subcluster we use the same method. One important point is that the id zero is reserved for the root graph (thus it cannot be used).

Syntax:

(cluster id name
  (nodes id_node1 id_node2 ...)
  (edges id_edge1 id_edge2 ...)
  (cluster id name
    (nodes id_node1 id_node2 ...)
    (edges id_edge1 id_edge2 ...)
  )
)

Sample:

(cluster 3 "cluster"
  (nodes 1 2 3 )
  (edges 2 8 )
  (cluster 4 "Sub Cluster"
    (nodes 1 2 )
    (edges 2 )
  )
)

Definitions of properties

The definition of properties is the following:

Syntax:

(property cluster_id property_type "property_name"
  (default "default_node_value" "default_edge_value" )
  (node id value)
  ...
  (edge id value)
  ...
)

Sample:

(property  0 bool "viewSelection"
  (default "false" "false" )
  (node 1 "true")
  (node 2 "true")
  (node 3 "true")
  (edge 2 "true")
  (edge 8 "true")
)

Property Type

  • layout : This type enables to store nodes position in 3D. The position of nodes is defined by a set of 3 doubles (x_coord,y_coord,z_coord). The position of edges is a list of 3D points. These points are the bends of edges. ((x_coord1,y_coord1,z_coord1)(x_coord2,y_coord2,z_coord2))
  • size : This type enables to store the size of elements. The size is defined with a sequence of three double. (width,heigth,depth)
  • color : This type enables to store the color of elements. The color is defined with a sequence of four integer from 0 to 255. (redence of h)(rs">),alphali>
  • size : Thich isype enato store the colorexpoins. The coli>size : Tmeichcsype enato store the colorealoins. The coli>size : Tan> type enables to store the coloan> eypeins. The coli>size : That ype enables to store the colo. The fieins. The coli>size /ul

DefinitiPs is the fintaph f="headerlink" href="#property-type" he ertiaph-f Permalink to this headline">¶

The defiencection"

  • clasblockpan>elass="pan>bles :oan> ,adline-type" tfollowinng wp> < roots" < . The coThe aph f.v class="highlight-c">
    (property  0 bool "viewSelection"
      (default "false" "false" )
      (node 1 "true")
      (node 2 "true")
      (node 3 "true")
      (edge 2 "true")
      (edge 8 "true")
    )
    
  • elasfiencectioLThis i>
  • clasblockpan>elass="pan>bles :o This ,adline-type" tfollowinng wp> < rootdisp Thh ishus ithe aph f.v class="highlight-c">
    (property  0 boolpan class="s">"viewSelectioLThis span>
      (default "false&qu(0,0,0)span> "false&qu()span> "an>
      (node 1 "true&quo(10,10,10)span>)
      (node 2 "true&quo(20,20,20)span>)
      (node 8 "true&quo(15,15,15)(25,25,25)span>)
      )
    
  • elasfiencectioCdefii>
  • clasblockpan>elass="pan>bles :o defi,adline-type" tfollowinng wp> < root defih ishus ioThe aph f.v class="highlight-c">
    (property  0 boolpan class="s">"viewSelectioCdefispan>
      (default "false&qu(235,0,23,255)span> "false&qu(0,0,0,0)span> "an>
      (node 1 "true&quo(200,0,200,255)span> )
      (node 2 "true&quo(100,100,0,255)span> )
      (node 2 "true&quo(100,100,0,255)span> )
      (node 2 "true&quo(200,100,100)span>)
      )
    
  • elasfiencectioLabeli>
  • clasblockpan>elass="pan>bles :ohich i,adline-type" tfollowinng wp> < rootlabele non eshus ioThe aph f(he label mn> ).v class="highlight-c">
    (property  0 boolpan class="s">"viewSelectioLTbelspan>
      (default "false&quspan> "false&quspan> "an>
      (node 1 "true&quoHellospan> )
      (node 2 "true&quoBonjourspan> )
      (node 2 "true&quoBy/span>)
      (edge 2 "true&quoAurevoirspan> )
      )
    
  • elasfiencectioSizei>
  • clasblockpan>elass="pan>bles :ohize,adline-type" tfollowinng wp> < root of elements. The sitdisp Thed.v class="highlight-c">
    (property  0 boolpan class="s">"viewSelectioSizespan>
      (default "false&qu(0,0,0)span> "false&qu(1,1,1)span> "an>
      (node 1 "true&quo(10,10,10)span>)
      (node 2 "true&quo(20,20,20)span>)
      )
    
  • elasfiencectioShapei>
  • clasblockpan>elass="pan>bles :oin ,adline-type" tfollp> < rootdn of non esshapeents. The colv class="highlight-c">
    (property  0 boolpan class="s">"viewSelectioShapespan>
      (default "false&qu0span> "false&qu0span> "an>
      (node 1 "true&quo1span>)
      (node 2 "true&quo2span>)
      )
    
  • elasfiencectioTexturei>
  • clasfiencectioRoa>
  • clasdiv>
  • <
    T sto Of Type" csl clas
    curr toctree-l1 simple">referfour . Thrnalindex.htmlstall>

    Tsize : simple">toctree-l1 simple">referfour . Thrnalindex.httoriallibulip DevelopeL >

    Tsize : simple">toctree-l1 simple">referfour . Thrnalindex.httorial.html" title="> with the Tulip library" >

    Tsize : simple">toctree-l1 curr simple">curr referfour . Thrnalindex.ht"raph formatul toctree-l2 simple">referfour . Thrnalindex.httitle=" class=

    Tsize : simple">toctree-l2 simple">referfour . Thrnalindex.httTsize : simple">toctree-l2 simple">referfour . Thrnalindex.htt"> Tsize : simple">toctree-l2 simple">referfour . Thrnalindex.httons-of-properties"> Tsize : simple">toctree-l2 simple">referfour . Thrnalindex.httes is the ertiaph-f iPs is the fintaph f=

    Tsize /ul toctree-l1 simple">referfour . Thrnalindex.htevelopment.html" title="> development" >

    Tsize : simple">toctree-l1 simple">referfour . Thrnalindex.htdoc_guidesitle=">Dtions=

    Tsize /ul <

    earchl clas
    <="Go <="yes <="/span> ule,aectiofir func proThen .nk re

    fon>er
    |
    <
    re>