Edge

class Edge<V>(val source: V, val destination: V)

An edge of a Multigraph. The source and destination are final, to avoid corruption of the multigraph.

Note that by default Edges compare by identity, trivially allowing multiple edges with the same source and destination to be added to the graph. Subclasses may supply different equality semantics.

Author

Todd L Smith

Parameters

V

The type of vertices of the graph.

source

The source vertex.

destination

The destination vertex.

Constructors

Link copied to clipboard
constructor(source: V, destination: V)

Construct a new edge.

Properties

Link copied to clipboard

The vertex to which this edge points.

Link copied to clipboard
val source: V

The vertex from which this edge originates.