Packages

final case class WDiEdge[+N](source: N, target: N, weight: Double) extends AbstractGenericDiEdge[N, WDiEdge] with ExtendedKeyByWeight with WDiEdgeToString with MultiWEdgeToString with Product with Serializable

Generic weighted undirected edge for multigraphs.

Annotations
@SerialVersionUID()
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WDiEdge
  2. Serializable
  3. Product
  4. MultiWEdgeToString
  5. WDiEdgeToString
  6. DiEdgeToString
  7. WEdgeToString
  8. LEdgeToString
  9. EdgeToString
  10. ExtendedKeyByWeight
  11. MultiEdge
  12. AbstractGenericDiEdge
  13. GenericEdgeMapper
  14. EdgeMapper
  15. GenericMapper
  16. Mapper
  17. AnyDiEdge
  18. EqDi
  19. AnyEdge
  20. AnyDiHyperEdge
  21. EqDiHyper
  22. AnyHyperEdge
  23. EqHyper
  24. Eq
  25. Edge
  26. Equals
  27. AnyRef
  28. Any
Implicitly
  1. by DiEdgeImplicits
  2. by UnDiEdgeImplicits
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WDiEdge(source: N, target: N, weight: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toany2stringadd[WDiEdge[N]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (WDiEdge[N], B)
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toArrowAssoc[WDiEdge[N]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def _1: N

    The first node of this edge.

    The first node of this edge.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
    Annotations
    @inline()
  7. final def _2: N

    The second node of this edge.

    The second node of this edge.

    Definition Classes
    AnyDiEdgeAnyHyperEdgeEdge
    Annotations
    @inline()
  8. final def arity: Int

    Number of the endpoints of this edge.

    Number of the endpoints of this edge. At least two nodes are joined. In case of a hook, the two nodes are identical. Hyperedges may link more than two nodes.

    Definition Classes
    AnyEdgeEdge
    Annotations
    @inline()
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. final def baseEquals(other: Edge[_]): Boolean
    Attributes
    protected
    Definition Classes
    EqDiEq
  11. def baseHashCode: Int
    Attributes
    protected
    Definition Classes
    EqDiEq
  12. def canEqual(that: Any): Boolean
    Definition Classes
    Edge → Equals
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. final def contains[M >: N](node: M): Boolean

    Same as isAt.

    Same as isAt.

    Definition Classes
    Edge
    Annotations
    @inline()
  15. def customMsgPrefix: String
    Attributes
    protected
    Definition Classes
    Edge
  16. final def diBaseEquals(n1: Any, n2: Any): Boolean
    Attributes
    protected
    Definition Classes
    EqDi
    Annotations
    @inline()
  17. final def ends: Several[N]

    The endpoints of this edge, in other words the nodes this edge connects.

    The endpoints of this edge, in other words the nodes this edge connects.

    Definition Classes
    AnyDiEdgeAnyEdgeAnyDiHyperEdgeEdge
  18. def ensuring(cond: (WDiEdge[N]) => Boolean, msg: => Any): WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toEnsuring[WDiEdge[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (WDiEdge[N]) => Boolean): WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toEnsuring[WDiEdge[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: => Any): WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toEnsuring[WDiEdge[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toEnsuring[WDiEdge[N]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(other: Any): Boolean
    Definition Classes
    MultiEdge → AnyRef → Any
  24. def equals(other: Edge[_]): Boolean

    Preconditions: this.directed == that.directed && this.isInstanceOf[Keyed] == that.isInstanceOf[Keyed]

    Preconditions: this.directed == that.directed && this.isInstanceOf[Keyed] == that.isInstanceOf[Keyed]

    Attributes
    protected
    Definition Classes
    Eq
  25. def extendKeyBy: OneOrMore[Double]

    Each element in this sequence references a class member of the custom edge that will be added to the edge key.

    Each element in this sequence references a class member of the custom edge that will be added to the edge key. The edge ends, like source and target, are always part of the key so don't add them here. Once you add class members to the edge key they automatically become part of the edge's hashCode/equality.

    Definition Classes
    ExtendedKeyByWeightMultiEdge
  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def hasSource(pred: (N) => Boolean): Boolean

    true if any source end of this edge fulfills pred.

    true if any source end of this edge fulfills pred.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  28. final def hasSource[M >: N](node: M): Boolean

    true if node is a source of this edge.

    true if node is a source of this edge. In case this edge is undirected this method maps to isAt.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  29. final def hasTarget(pred: (N) => Boolean): Boolean

    true if any target end of this edge fulfills pred.

    true if any target end of this edge fulfills pred.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  30. final def hasTarget[M >: N](node: M): Boolean

    true if node is a target of this edge.

    true if node is a target of this edge. In case this edge is undirected this method maps to isAt.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  31. def hashCode(): Int
    Definition Classes
    MultiEdge → AnyRef → Any
  32. final def isAt(pred: (N) => Boolean): Boolean

    true if any end of this edge fulfills pred.

    true if any end of this edge fulfills pred.

    Definition Classes
    AnyEdgeEdge
    Annotations
    @inline()
  33. final def isAt[M >: N](node: M): Boolean

    true if node is incident with this edge.

    true if node is incident with this edge.

    Definition Classes
    AnyEdgeEdge
    Annotations
    @inline()
  34. final def isDirected: Boolean

    Whether this edge is directed.

    Whether this edge is directed.

    Definition Classes
    AnyDiHyperEdgeAnyHyperEdgeEdge
    Annotations
    @inline()
  35. final def isHyperEdge: Boolean

    Whether this edge's type is hyperedge meaning that it may have more than two ends.

    Whether this edge's type is hyperedge meaning that it may have more than two ends.

    Definition Classes
    AnyEdgeEdge
    Annotations
    @inline()
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def isLabeled: Boolean
    Definition Classes
    Edge
  38. final def isLooping: Boolean

    Whether this edge produces a self-loop.

    Whether this edge produces a self-loop. In case of a non-hyperedge, a loop is given if the incident nodes are equal. In case of a directed hyperedge, a loop is given if any of the targets is included in the sources. In case of an undirected hyperedge, a loop is given if any of the ends is a duplicate.

    Definition Classes
    AnyDiEdgeAnyEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  39. final def isUndirected: Boolean

    Whether this edge is undirected.

    Whether this edge is undirected.

    Definition Classes
    Edge
    Annotations
    @inline()
  40. def labelSeparator: String
    Attributes
    protected
    Definition Classes
    MultiWEdgeToString
  41. def labelToString: String

    The part to be printed after the edge ends and the label separator.

    The part to be printed after the edge ends and the label separator.

    Attributes
    protected
    Definition Classes
    WEdgeToStringLEdgeToString
  42. def map[NN](source: NN, target: NN): WDiEdge[NN]
    Definition Classes
    WDiEdgeGenericEdgeMapper
  43. final def matches(p1: (N) => Boolean, p2: (N) => Boolean): Boolean

    true if
    a) two distinct ends of this undirected edge exist for which p1 and p2 hold or
    b) p1 holds for a source and p2 for a target of this directed edge.

    true if
    a) two distinct ends of this undirected edge exist for which p1 and p2 hold or
    b) p1 holds for a source and p2 for a target of this directed edge.

    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  44. final def matches[M >: N](n1: M, n2: M): Boolean

    true if

    true if

    1. being an undirected edge, both n1 and n2 are at this edge
    2. being a directed edge, n1 is a source and n2 a target of this edge.
    Definition Classes
    AnyDiEdgeAnyDiHyperEdgeAnyHyperEdgeEdge
  45. final def matches(fList: List[(N) => Boolean]): Boolean
    Attributes
    protected
    Definition Classes
    AnyHyperEdge
  46. val n1: WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toUnDiEdgeImplicits[WDiEdge[N]] performed by method UnDiEdgeImplicits in scalax.collection.edges.
    Definition Classes
    UnDiEdgeImplicitsAbstractEdgeImplicits
  47. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  48. final def node(n: Int): N

    The n'th node of this edge.

    The n'th node of this edge.

    Definition Classes
    AnyEdgeEdge
    Exceptions thrown

    IllegalArgumentException if n does not meet 0 <= n < arity.

  49. def nodesToString: String
    Attributes
    protected
    Definition Classes
    EdgeToString
  50. def nodesToStringSeparator: String
    Attributes
    protected
    Definition Classes
    DiEdgeToStringEdgeToString
  51. final def nonHyperEdge: Boolean

    Whether this edge has exactly two ends.

    Whether this edge has exactly two ends.

    Definition Classes
    Edge
    Annotations
    @inline()
  52. final def nonLooping: Boolean

    Same as ! looping.

    Same as ! looping.

    Definition Classes
    Edge
    Annotations
    @inline()
  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  55. def productElementNames: Iterator[String]
    Definition Classes
    Product
  56. val source: N
    Definition Classes
    WDiEdgeAnyDiEdge
  57. final def sources: OneOrMore[N]

    All source ends of this edge.

    All source ends of this edge.

    Definition Classes
    AnyDiEdgeAnyHyperEdgeEdge
  58. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  59. val target: N
    Definition Classes
    WDiEdgeAnyDiEdge
  60. final def targets: OneOrMore[N]

    All target ends of this edge.

    All target ends of this edge.

    Definition Classes
    AnyDiEdgeAnyHyperEdgeEdge
  61. def toString(): String

    Implemented in terms of the protected methods nodesToString, labelSeparator and labelToString.

    Implemented in terms of the protected methods nodesToString, labelSeparator and labelToString.

    Definition Classes
    LEdgeToStringEdgeToString → AnyRef → Any
  62. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  64. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  65. val weight: Double

    The weight of this edge with a default of 1.

    The weight of this edge with a default of 1.

    Note that weight is normally not part of the edge key (hashCode). As a result, edges with different weights connecting the same nodes will be evaluated as equal and thus added once and only once to the graph. In case you need multi-edges based on different weights you should define a custom edge class that mixes in ExtendedKey and adds weight to keyAttributes.

    Definition Classes
    WDiEdgeEdge
  66. final def withSources[U](f: (N) => U): Unit

    Applies f to all source ends of this edge without any memory allocation.

    Applies f to all source ends of this edge without any memory allocation.

    Definition Classes
    AnyDiEdgeAnyHyperEdgeEdge
  67. final def withTargets[U](f: (N) => U): Unit

    Applies f to the target ends of this edge without any memory allocation.

    Applies f to the target ends of this edge without any memory allocation.

    Definition Classes
    AnyDiEdgeAnyHyperEdgeEdge
  68. def ~[NN >: N](n2: NN): UnDiEdge[NN]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toUnDiEdgeImplicits[WDiEdge[N]] performed by method UnDiEdgeImplicits in scalax.collection.edges.
    Definition Classes
    AbstractEdgeImplicits
  69. def ~>[NN >: N](target: NN): DiEdge[NN]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toDiEdgeImplicits[WDiEdge[N]] performed by method DiEdgeImplicits in scalax.collection.edges.
    Definition Classes
    AbstractDiEdgeImplicits

Shadowed Implicit Value Members

  1. val source: WDiEdge[N]
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toDiEdgeImplicits[WDiEdge[N]] performed by method DiEdgeImplicits in scalax.collection.edges.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (wDiEdge: DiEdgeImplicits[WDiEdge[N]]).source
    Definition Classes
    DiEdgeImplicitsAbstractDiEdgeImplicits

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toStringFormat[WDiEdge[N]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (WDiEdge[N], B)
    Implicit
    This member is added by an implicit conversion from WDiEdge[N] toArrowAssoc[WDiEdge[N]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from MultiWEdgeToString

Inherited from WDiEdgeToString

Inherited from DiEdgeToString

Inherited from WEdgeToString

Inherited from LEdgeToString

Inherited from EdgeToString

Inherited from ExtendedKeyByWeight

Inherited from MultiEdge

Inherited from AbstractGenericDiEdge[N, WDiEdge]

Inherited from EdgeMapper

Inherited from GenericMapper

Inherited from Mapper

Inherited from AnyDiEdge[N]

Inherited from EqDi[N]

Inherited from AnyEdge[N]

Inherited from AnyDiHyperEdge[N]

Inherited from EqDiHyper

Inherited from AnyHyperEdge[N]

Inherited from EqHyper

Inherited from Eq

Inherited from Edge[N]

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion DiEdgeImplicits fromWDiEdge[N] to DiEdgeImplicits[WDiEdge[N]]

Inherited by implicit conversion UnDiEdgeImplicits fromWDiEdge[N] to UnDiEdgeImplicits[WDiEdge[N]]

Inherited by implicit conversion any2stringadd fromWDiEdge[N] to any2stringadd[WDiEdge[N]]

Inherited by implicit conversion StringFormat fromWDiEdge[N] to StringFormat[WDiEdge[N]]

Inherited by implicit conversion Ensuring fromWDiEdge[N] to Ensuring[WDiEdge[N]]

Inherited by implicit conversion ArrowAssoc fromWDiEdge[N] to ArrowAssoc[WDiEdge[N]]

Ungrouped