Item

scalation.database.graph_pm.ShortestPath.Item
case class Item(id: Int, dd: Double) extends Ordered[Item]

The Item inner case class has two fields, vertex id and distance from vertex s (the source) as well as a compare method based on distance.

Value parameters

dd

the vertex's distance from vertex s

id

the id of the vertex

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[Item]
trait Comparable[Item]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def compare(v: Item): Int

Inherited methods

def <(that: Item): Boolean

Attributes

Inherited from:
Ordered
def <=(that: Item): Boolean

Attributes

Inherited from:
Ordered
def >(that: Item): Boolean

Attributes

Inherited from:
Ordered
def >=(that: Item): Boolean

Attributes

Inherited from:
Ordered
def compareTo(that: Item): Int

Attributes

Inherited from:
Ordered
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product