TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class GraphLink in Tinman.Core.Collections

Represents a link between two nodes in a directed graph.

sealed class GraphLink with <TNode>  
  implements IDeletable

Public / Attributes

Source

The source node of this link.

public property Source { get }
type GraphNode<TNode>
value [not-null] The source node.

Target

The target node of this link.

public property Target { get }
type GraphNode<TNode>
value [not-null] The target node.

Weight

The link weight.

public property Weight { get set }
type float64
value [>0] The link weight.

Remarks:

The default value is 1.

Public / Methods

Delete

Deletes this object immediately.

public method Delete ()
implements IDeletable.Delete

Remarks:

Deletion is considered to be a notification that the object is no longer used. The implementation is then free to perform cleanup or pooling actions.

Using an object after Delete has been called will yield undefined results. The code that calls Delete must make sure that there are no shared usages of the object that is being deleted.