Link

class Link(var source: Int, var target: Int)(source)

Represents a connection or relationship between two Nodes, identified by their indices.

This class is primarily used to model a connection between two nodes or objects in a system, such as a physical simulation or graph structure. The source and target properties represent the indices of the connected nodes.

Constructors

Link copied to clipboard
constructor(source: Int, target: Int)

Properties

Link copied to clipboard
var source: Int

the index of the source node.

Link copied to clipboard
var target: Int

the index of the target node.