Edge

data class Edge<V, E>(val _value: E, val _from: V, val _to: V) : IEdge<V, E> (source)

Represents a directed edge connecting two vertices in a graph with an associated value.

This class is part of a graph structure and provides functionality to access the source and destination vertices as well as the value associated with the edge.

Parameters

V

the type of the vertices.

E

the type of the edge value.

Constructors

Link copied to clipboard
constructor(_value: E, _from: V, _to: V)

Properties

Link copied to clipboard
val _from: V

the source vertex of the edge.

Link copied to clipboard
val _to: V

the destination vertex of the edge.

Link copied to clipboard
val _value: E

the value associated with the edge.

Functions

Link copied to clipboard
open override fun from(): V
Link copied to clipboard
open override fun to(): V
Link copied to clipboard
open override fun value(): E