UndirectedGraph.Edge

Undocumented in source.

Constructors

this
this(Node start, Node end)
this(Node start, Node end, Weight weight)

Construct an edge.

Members

Aliases

source
alias source = target

Returns the other node of this edge.

Functions

getCommonNode
Node getCommonNode(Edge other)

Returns the node that is common to this and other.

opCmp
int opCmp(Edge other)

Orders edge lexicographically by start, end.

opEquals
bool opEquals(Edge other)

Two edges are equal iff their incident nodes are the same.

target
Node target(Node from)

Returns the other node of this edge.

Properties

end
Node end [@property getter]

Get the end of this edge, i.e. the larger of both incident nodes.

start
Node start [@property getter]

Get the start of this edge, i.e. the smaller of both incident nodes.

Variables

_end
Node _end;
Undocumented in source.
_start
Node _start;
Undocumented in source.
weight
Weight weight;
Undocumented in source.

Meta