Packages

c

mathlib.graph

WUnDiEdge

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.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WUnDiEdge
  2. Serializable
  3. Product
  4. Equals
  5. WeightedEdge
  6. Edge
  7. ProtoEdge
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WUnDiEdge(left: T, right: T, weight: Double)

    left

    Left vertex of the edge.

    right

    Right vertex of the edge.

    weight

    The weight of the edge.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canEqual(that: Any): Boolean

    Checks if this instance can equal that instance.

    Checks if this instance can equal that instance.

    that

    The instance to check.

    returns

    true if that is of type WUnDiEdge

    Definition Classes
    WUnDiEdge → Equals
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. 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

    true if the vertex is part of this edge, false otherwise.

    Definition Classes
    Edge
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. 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

    true if that.left == that.left && that.right == that.right or that.left == that.right && that.right == that.left.

    Definition Classes
    WUnDiEdge → Equals → AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. 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
  12. 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
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val left: T
    Definition Classes
    WUnDiEdgeEdge
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. def productIterator: Iterator[Any]
    Definition Classes
    Product
  20. val right: T
    Definition Classes
    WUnDiEdgeEdge
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. val weight: Double

    Weight of the edge.

    Weight of the edge.

    Definition Classes
    WUnDiEdgeWeightedEdge

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WeightedEdge

Inherited from Edge[T]

Inherited from ProtoEdge[T]

Inherited from AnyRef

Inherited from Any

Ungrouped