Path

problemutils.classes.graphs.Path
case class Path[V](vertices: Seq[V], cost: Double)

Value parameters

cost

the total cost of the path

vertices

the ordered sequence of vertices making up the path

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply: Int => V
def head: V
def last: V
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val reverse: Path[V]