Class LayeredDigraphEdge

This holds LayeredDigraphLayout-specific information about Link s.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): LayeredDigraphEdge

Returns

LayeredDigraphEdge

Properties

public forest: boolean

True if the link is part of the depth first forest.

public fromVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge comes from.

public link: Link

Gets or sets the Link associated with this edge, if any.

public network: LayoutNetwork

Gets or sets the LayoutNetwork that owns this edge.

public portFromColOffset: number

Approximate column offset of the from port of the link from the from node column used in straightening.

public portFromPos: number

Location of the port at the from node of the link.

public portToColOffset: number

Approximate column offset of the to port of the link from the to node column used in straightening.

public portToPos: number

Location of the port at the to node of the link.

public rev: boolean

True if the link was reversed during cycle removal.

public toVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge goes to.

public valid: boolean

True if the link is part of the proper digraph.

Methods

public commit(): any

Commits the route of this edge to the corresponding Link, if any.

Returns

any

public getOtherVertex(v: LayoutVertex): any

Returns the edge's vertex at the other of this edge from the given vertex.

Parameters

Returns

any