     
Special edge types
» An edge of a special type is specified by
edge type: { source: "title" target: "title" attributes }
» Supported edge types
backedge // direction opposite to normal edges;
nearedge // source and target on the same level,
leftnearedge // target to the left,
rightnearedge // target to the right;
bentnearedge // a bent edge consists of
leftbentnearedge // a horizontal and a vertical part,
rightbentnearedge // useful for drawing control flow graphs

Anchor points
» An edge can be attached to an explicit line within a node by
anchor: integer
» Anchors are not compatible with near edges
» Anchors only apply if the graph orientation is top to bottom

Example (see slide)
graph: {edge.arrowstyle: line
node: { title: "A" label: "line1\nline2" }
node: { title: "t1" }
node: { title: "t2" }
node: { title: "t3" }
node: { title: "t4" }
edge: { source: "A" target: "t1" anchor: 1 }
edge: { source: "A" target: "t2" anchor: 2 }
edge: { source: "t3" target: "A" }
nearedge: { source: "t2" target: "t3" }
bentnearedge: { source: "t2" target: "t4" }
}
// see also C data structs example

Go to ...
|