Class LayoutEdge

An edge represents a link in a LayoutNetwork. It holds layout-specific data for the link.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): LayoutEdge

This constructs an edge that does not know about any Link.

Returns

LayoutEdge

Properties

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 toVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge goes to.

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