aiSee
» Examples
» Download
» Purchase
» Help
   » GDL
      » Lesson 3
» aiSee.com

» About us
» Products
» WCET
» Press center
» Contact

»  Sitemap
» 

Lesson 3: Edge Arrows and Line Styles

The thickness of an edge (in pixels) can be specified as follows:

edge: { source: "A" target: "B" thickness: 6 }

The default thickness is 2 pixels.

The size of an edge's arrow head (in pixels) can be specified as follows:

edge: { source: "A" target: "B" arrowsize: 20 }

The default arrow head size is 10 pixels.

The style in which the edge is drawn can be specified as follows:

edge: { source: "A" target: "B" 
        linestyle: dotted 
}

The following line styles are available:

solid (default) solid
dashed dashed
dotted dotted
double double
triple triple
invisible invisible

The style in which the arrow head of an edge is drawn can be specified as follows:

edge: { source: "A" target: "B" 
        arrowstyle: "line" 
}

The following arrow head styles are available:

"solid" solid
"line" line
"none" none
"circle" circle
"half circle" half circle
"filled circle" filled circle
"filled half circle" filled half circle
"box" box
"half box" half box
"filled box" filled box
"filled half box" filled half box
"rhomb" rhomb
"half rhomb" half rhomb
"filled rhomb" filled rhomb
"filled half rhomb" filled half rhomb
"diamond" diamond
"half diamond" half diamond
"slash" slash
"dslash" dslash

All edge arrow head styles except "solid" and "line" can be concatenated to create custom composite edge arrows. Examples:

"half rhomb + circle" half rhomb + circle
"half diamond + filled circle" half diamond + filled circle
"none + rhomb" none + rhomb
"filled rhomb + dslash" filled rhomb + dslash
"diamond + slash" diamond + slash
"box + circle + box + box" box + circle + box + box
etc.

Arrow heads can also be drawn on the rear end of an edge (and on both its ends):

edge: { source: "A" target: "B" 
        backarrowsize: 10 
        backarrowstyle: "solid"
}

Deutsch «
По-русски «

Top


Note:

  • Attributes can be specified in any order.

  • It is possible to change the appearance of several/all edges at once by using global attributes.

  • Related topics such as colors, edge labels, arrow modes, splines and manhattan edges will be discussed later.


» Next lesson: colors