Edge

Edge is derived class of GraphElem and represents an edge in the graph.

Fields

Field

Type

Description

isEdge

boolean

Read only. Returns True.

weight

number

The edge weight, a float value normally between -1.0 and 1.0.

weightVisible

boolean

True if the edge weight is visible independently of the documentโ€™s edgeWeightsVisible setting.

annotationVisible

boolean

True if the edge annotation is visible independently of the documentโ€™s edgeAnnotationsVisible setting.

source

Read only. The source element of the edge; i.e., the element at the tail-end of the edge.

target

Read only. The target element of the edge; i.e., the element at the head-end of the edge.

isBackEdge

boolean

Read only. True if the edge is a back edge.

splines

Deprecated. Use splinesDictionary instead.

splinesDictionary

dictionary or None

Read only. The edgeโ€™s splines as a dictionary or None if the edge is hidden in a collapsed group. The keys are the The dictionary values are tuples of tuples of the spline control points.

arrowheadVertices

tuple or None

Read only. The edgeโ€™s arrowhead as a tuple of three tuples (x, y) or None if the edge is hidden in a collapsed group.

color

The edgeโ€™s color in the canvas.

noteLines

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 because weightVisible is True or the documentโ€™s edgeWeightsVisible setting is True, otherwise False.

isAnnotationVisible()

True if the edge annotation is visible either because annotationVisible is True or the documentโ€™s edgeAnnotationsVisible setting is True, otherwise False.

equals( object )

Returns True if object represents the same edge as self.

Last updated