The type of the value stored in the node.
Constructor for LinkedListNode
.
The value stored in the node.
A unique, immutable identifier for the node.
One of the nodes adjacent to this
. When the graph has a given direction, this is taken to be the "next" node.
One of the nodes adjacent to this
. When the graph has a given direction, this is taken to be the "previous" node.
Whether the node has been traversed. Useful for certain algorithms.
A value stored in the node.
Represents the number of existing nodes. Used to distinguish between identical elements consistently.
Links one node to another, in a single direction. Should only ever be called during linkTo
.
The node to be linked with this
.
Retrieves the node's ID
.
The node's ID.
Links two nodes together.
The node to be linked with this
.
Generated using TypeDoc, the 1/31/2021 at 6:18:55 AM
A node, for usage in a (doubly) linked list. Each
LinkedListNode
is linked to two other nodes: linkage should be reflexive.LinkedListNodes
don't necessarily have a notion of a "previous" and a "next" node. But when these are required, by convention,node0
is the next node, andnode1
is the previous.