Class ForceDirectedEdge

This holds ForceDirectedLayout-specific information about Links.

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): ForceDirectedEdge

Returns

ForceDirectedEdge

Properties

public fromVertex: LayoutVertex

Gets or sets the LayoutVertex that this edge comes from.

public length: number

Gets or sets the length of this edge.

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 stiffness: number

Gets or sets this edge's stiffness or resistence to compression or stretching.

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