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[ShortestPath.this.Item]
trait Comparable[ShortestPath.this.Item]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def compare(v: ShortestPath.this.Item): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Implement this method to determine how instances of A will be sorted.

Returns x where:

  • x < 0 when this < that

  • x == 0 when this == that

  • x > 0 when this > that

Attributes

Inherited methods

def <(that: ShortestPath.this.Item): Boolean

Returns true if this is less than that

Returns true if this is less than that

Attributes

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

Returns true if this is less than or equal to that.

Returns true if this is less than or equal to that.

Attributes

Inherited from:
Ordered
def >(that: ShortestPath.this.Item): Boolean

Returns true if this is greater than that.

Returns true if this is greater than that.

Attributes

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

Returns true if this is greater than or equal to that.

Returns true if this is greater than or equal to that.

Attributes

Inherited from:
Ordered
def compareTo(that: ShortestPath.this.Item): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Attributes

Inherited from:
Ordered
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product