Edge
Edge is derived class of GraphElem and represents an edge in the graph.
Fields
Field | Type | Description |
| boolean | Read only. Returns |
| number | The edge weight, a float value normally between -1.0 and 1.0. |
| boolean |
|
| boolean |
|
| Read only. The source element of the edge; i.e., the element at the tail-end of the edge. | |
| Read only. The target element of the edge; i.e., the element at the head-end of the edge. | |
| boolean | Read only. |
| Deprecated. Use | |
| dictionary or | Read only. The edge’s splines as a dictionary or |
| tuple or | Read only. The edge’s arrowhead as a tuple of three tuples (x, y) or |
| The edge’s color in the canvas. | |
| list of LayoutLine | Read only. A list of LayoutLines providing position information for the annotation. |
Methods
isWeightVisible()
True
if the edge weight is visible either becauseweightVisible
isTrue
or the document’sedgeWeightsVisible
setting isTrue
, otherwiseFalse
.
isAnnotationVisible()
True
if the edge annotation is visible either becauseannotationVisible
isTrue
or the document’sedgeAnnotationsVisible
setting isTrue
, otherwiseFalse
.
equals( object )
Returns
True
if object represents the same edge asself
.
Last updated