trait MultiEdge extends Eq
Edge mixin for multigraph support.
As a default, hashCode/equality of edges is determined by their ends. We say that edge ends are part of the edge key.
Whenever your custom edge needs to be a multi-edge, meaning that your graph is allowed to connect some nodes by an instance of this edge even if those nodes are already connected, the edge key needs be extended by adding at least one more class member, constant or whatsoever to the edge key.
For example edges representing flight connections between airports need be multi-edges to allow for different flights between the same airports.
- Alphabetic
- By Inheritance
- MultiEdge
- Eq
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def baseEquals(other: Edge[_]): Boolean
- Attributes
- protected
- Definition Classes
- Eq
- abstract def baseHashCode: Int
- Attributes
- protected
- Definition Classes
- Eq
- abstract def extendKeyBy: OneOrMore[Any]
Each value, such as a class member, you specify in this non-empty sequence will be added to the edge "key" which contains the edge
ends
, in terms of a directed edge thesource
and thetarget
, by default.Each value, such as a class member, you specify in this non-empty sequence will be added to the edge "key" which contains the edge
ends
, in terms of a directed edge thesource
and thetarget
, by default. The term "key" refers to how equality of edges is controlled.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (MultiEdge, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def ensuring(cond: (MultiEdge) => Boolean, msg: => Any): MultiEdge
- def ensuring(cond: (MultiEdge) => Boolean): MultiEdge
- def ensuring(cond: Boolean, msg: => Any): MultiEdge
- def ensuring(cond: Boolean): MultiEdge
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from MultiEdge toStringFormat[MultiEdge] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (MultiEdge, B)
- Implicit
- This member is added by an implicit conversion from MultiEdge toArrowAssoc[MultiEdge] 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.