ExternalEdge

data class ExternalEdge<V : Any, out E : AbstractEdge>(startFrom: V, endWith: V, value: E) : Edge<V, E> , AbstractEdge

Represents edge with value which implements AbstractEdge interface.

Author

Alexander Kornilov (akornilov.82@gmail.com).

Constructors

ExternalEdge
Link copied to clipboard
fun <V : Any, out E : AbstractEdge> ExternalEdge(startFrom: V, endWith: V, value: E)

Functions

opposite
Link copied to clipboard
open fun opposite(value: V): V
Returns opposite vertex for startFrom or endWith values.
weightOrDefault
Link copied to clipboard
open fun weightOrDefault(default: Double = DefaultWeight): Double
Returns weight or default if edges don't have weight.

Properties

endWith
Link copied to clipboard
open override val endWith: V
Vertex where edge ends with.
hasWeight
Link copied to clipboard
open override val hasWeight: Boolean
isDynamicWeight
Link copied to clipboard
open override val isDynamicWeight: Boolean
isOriented
Link copied to clipboard
open override val isOriented: Boolean
startFrom
Link copied to clipboard
open override val startFrom: V
Vertex where edge starts from.
value
Link copied to clipboard
open override val value: E
An edge parametrized value.
weight
Link copied to clipboard
open override val weight: Double