|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
VertexLabels
VertexLabels
is an option and property for Graph and related functions that specifies what labels and label positions should be used for vertices.
DetailsDetails
- The following option settings can be used:
-
None use no vertex labels Automatic automatically label vertices "Name" use the vertex name as a label {v1->lbl1,v2->lbl2,...} label vertex
with
etc. - The wrapper Labeled[v, lbl] is equivalent to Property[v, VertexLabels->lbl] and can be used when creating graphs in functions such as Graph etc.
- Any expression can be used as a label.
- Labeled[v, lbl, pos] and Placed[lbl, pos] can be used to place labels in relative position to the vertex box.
- The following positions pos can be used for Labeled and Placed in positioning vertex labels:
-
Tooltip, StatusArea show as tooltip or in status area on mouseover Center place label at center of vertex Before,After,Below,Above place label outside before, after, etc. Left,Right,Bottom,Top place label inside to the left, right, etc. {Before,Below},{After,Below},... place label outside at corner before/below, etc. {Left,Bottom},{Right,Bottom},... place label inside at corner left/bottom, etc. {{vx,vy},{lx,ly}} scaled position
in the label at scaled position
in the vertex
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




