Edge

interface Edge<V : Any, out E : Any> : AbstractEdge

Represents interface of a graph's edge based on AbstractEdge.

Author

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

Types

Companion
Link copied to clipboard
object Companion

Functions

component1
Link copied to clipboard
open operator fun component1(): V
component2
Link copied to clipboard
open operator fun component2(): V
component3
Link copied to clipboard
open operator fun component3(): E
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
abstract val endWith: V
Vertex where edge ends with.
hasWeight
Link copied to clipboard
abstract val hasWeight: Boolean
Indicates that the edge has weight.
isDynamicWeight
Link copied to clipboard
abstract val isDynamicWeight: Boolean
Indicates that the weight can be changed dynamically.
isOriented
Link copied to clipboard
abstract val isOriented: Boolean
Indicates that the edge is oriented.
startFrom
Link copied to clipboard
abstract val startFrom: V
Vertex where edge starts from.
value
Link copied to clipboard
abstract val value: E
An edge parametrized value.
weight
Link copied to clipboard
abstract val weight: Double
Weight of the edge.

Inheritors

ExternalEdge
Link copied to clipboard
MutableEdge
Link copied to clipboard
StaticEdge
Link copied to clipboard