case class Item(id: Int, dd: Double) extends Ordered[Item] with Product with Serializable
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.
- id
the id of the vertex
- dd
the vertex's distance from vertex s
- Alphabetic
- By Inheritance
- Item
- Serializable
- Serializable
- Product
- Equals
- Ordered
- Comparable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Item(id: Int, dd: Double)
- id
the id of the vertex
- dd
the vertex's distance from vertex s
Value Members
-
def
<(that: Item): Boolean
- Definition Classes
- Ordered
-
def
<=(that: Item): Boolean
- Definition Classes
- Ordered
-
def
>(that: Item): Boolean
- Definition Classes
- Ordered
-
def
>=(that: Item): Boolean
- Definition Classes
- Ordered
-
def
compare(v: Item): Int
- Definition Classes
- Item → Ordered
-
def
compareTo(that: Item): Int
- Definition Classes
- Ordered → Comparable
- val dd: Double
- val id: Int