case class WUnDiEdge[T <: Node[_]](left: T, right: T, weight: Double) extends Edge[T] with WeightedEdge with ProtoEdge[T] with Product with Serializable
Represents a weighted undirected edge.
- T
The type of the vertices.
- left
Left vertex of the edge.
- right
Right vertex of the edge.
- weight
The weight of the edge.
- Alphabetic
- By Inheritance
- WUnDiEdge
- Serializable
- Product
- Equals
- WeightedEdge
- Edge
- ProtoEdge
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(that: Any): Boolean
Checks if this instance can equal that instance.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def contains(vertex: T): Boolean
Checks if the edge contains the given vertex.
Checks if the edge contains the given vertex.
- vertex
The vertex to check.
- returns
if the vertex is part of this edge,true
otherwise.false
- Definition Classes
- Edge
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
Checks if this equals that.
Checks if this equals that.
Undirected edges (x,y) equal (y,x). This equals function tests equivalence respecting this property. Weights are ignored under the assumption that multiple edges (x, y) with different weights are not allowed.
- that
The object to test equivalence to.
- returns
if that.left == that.left && that.right == that.right or that.left == that.right && that.right == that.left.true
- Definition Classes
- WUnDiEdge → Equals → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getNeighborOf(vertex: T): Option[T]
Get the neighboring vertex of the base vertex.
Get the neighboring vertex of the base vertex.
Uses scala.Option as the return type for compatibility with edges that may not have a neighbor.
- vertex
The base vertex.
- returns
The neighbor of vertex, wrapped in
.Some(.)
- Definition Classes
- Edge
- def hashCode(): Int
Calculates the hash code of the edge.
Calculates the hash code of the edge.
- returns
Hash code of the edge.
- Definition Classes
- WUnDiEdge → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val left: T
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- val right: T
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val weight: Double
Weight of the edge.
Weight of the edge.
- Definition Classes
- WUnDiEdge → WeightedEdge