Packages

  • package root

    Welcome to the Graph for Scala API reference.

    Welcome to the Graph for Scala API reference. Some suggested navigation entry points:

    Definition Classes
    root
  • package scalax
    Definition Classes
    root
  • package collection

    Contains the base traits and objects needed to use Graph for Scala.

    Contains the base traits and objects needed to use Graph for Scala.

    See also the Graph for Scala Core User Guide.

    Definition Classes
    scalax
  • package edge

    Predefined edges.

    Predefined edges.

    While basic edge types are defined in the object GraphEdge, the predefined edges in this package cover the following categories (prefixes, shortcuts):

    weighted (W, %), key-weighted (Wk, %#), labeled (L, +), key-labeled (Lk, +#), weighted and labeled (WL, %+), key-weighted and labeled (WkL, %#+), weighted and key-labeled (WLk, %+#) and key-weighted and key-labeled (WkLk, %#+#).

    These predefined edges provide alternatives for any edge extension taking the burden from the user to implement his/her custom edge class - but baring the disadvantage that user edge attributes must be part of a label class as opposed to being part of the edge class directly. It may also serve as a source for looking up how to implement custom edge classes.

    Definition Classes
    collection
  • object LBase

    Base traits for labeled edges.

    Base traits for labeled edges.

    Definition Classes
    edge
  • LEdge
  • LEdgeCompanion
  • LEdgeImplicits
  • LHyperEdgeCompanion
  • OuterLEdgeImplicits
  • TypedLEdgeImplicits

abstract class LEdgeImplicits[UL] extends OuterLEdgeImplicits[UL]

Implicit conversions from an inner or outer labeled edge to its label. In case of inner edges, this trait works for scalax.collection.Graph only. For other graph types see scalax.collection.edge.LBase.TypedLEdgeImplicits.

UL

type of the user label.

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LEdgeImplicits
  2. OuterLEdgeImplicits
  3. AnyRef
  4. Any
Implicitly
  1. by ChainingOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LEdgeImplicits()(implicit arg0: ClassTag[UL])

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 LEdgeImplicits[UL] toany2stringadd[LEdgeImplicits[UL]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LEdgeImplicits[UL], B)
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toArrowAssoc[LEdgeImplicits[UL]] 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 asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def ensuring(cond: (LEdgeImplicits[UL]) => Boolean, msg: => Any): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toEnsuring[LEdgeImplicits[UL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (LEdgeImplicits[UL]) => Boolean): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toEnsuring[LEdgeImplicits[UL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: => Any): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toEnsuring[LEdgeImplicits[UL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toEnsuring[LEdgeImplicits[UL]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def handle(label: Any): Nothing
    Attributes
    protected
    Definition Classes
    OuterLEdgeImplicits
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. implicit def innerEdge2UserLabel[N, E[+X] <: EdgeLikeIn[X]](innerEdge: Graph.EdgeT): UL

    Lets implicitly convert a labeled inner edge to its label:

    Lets implicitly convert a labeled inner edge to its label:

    case class MyLabel(val i: Int)
    val g = Graph(LUnDiEdge(1,3)(MyLabel(4)))
    val eInner = g.edges.head
    
    object MyLabelConversion extends LEdgeImplicits[MyLabel]
    import MyLabelConversion._
    val four_2 = eInner.i

    As this conversion is not type safe, the user has to ensure that innerEdge is of appropriate type.

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. implicit def outerLEdge2UserLabel[N](edge: LEdge[N] { type L1 = UL }): UL

    Lets implicitly convert a labeled outer edge to its label:

    Lets implicitly convert a labeled outer edge to its label:

    case class MyLabel(val i: Int)
    val eOuter = LUnDiEdge(1,3)(MyLabel(4))
    
    object MyLabelConversion extends OuterLEdgeImplicits[MyLabel]
    import MyLabelConversion._
    val four = eOuter.i
    Definition Classes
    OuterLEdgeImplicits
  23. def pipe[B](f: (LEdgeImplicits[UL]) => B): B
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toChainingOps[LEdgeImplicits[UL]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  24. val self: LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toChainingOps[LEdgeImplicits[UL]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def tap[U](f: (LEdgeImplicits[UL]) => U): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toChainingOps[LEdgeImplicits[UL]] performed by method ChainingOps in scalax.collection.
    Definition Classes
    ChainingOps
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. implicit def toUserLabel[N, E[+X] <: LEdge[X]](label: OuterLEdgeImplicits.toUserLabel.E.L1): UL

    Lets implicitly convert a label to its user type:

    Lets implicitly convert a label to its user type:

    case class MyLabel(val i: Int)
    val eOuter = LUnDiEdge(1,3)(MyLabel(4))
    
    object MyLabelConversion extends OuterLEdgeImplicits[MyLabel]
    import MyLabelConversion._
    val label: MyLabel = eOuter.label

    As this conversion is not type safe, the user has to ensure that label is of the type UL.

    Definition Classes
    OuterLEdgeImplicits
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 LEdgeImplicits[UL] toStringFormat[LEdgeImplicits[UL]] 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): (LEdgeImplicits[UL], B)
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] toArrowAssoc[LEdgeImplicits[UL]] 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 OuterLEdgeImplicits[UL]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion ChainingOps fromLEdgeImplicits[UL] to ChainingOps[LEdgeImplicits[UL]]

Inherited by implicit conversion any2stringadd fromLEdgeImplicits[UL] to any2stringadd[LEdgeImplicits[UL]]

Inherited by implicit conversion StringFormat fromLEdgeImplicits[UL] to StringFormat[LEdgeImplicits[UL]]

Inherited by implicit conversion Ensuring fromLEdgeImplicits[UL] to Ensuring[LEdgeImplicits[UL]]

Inherited by implicit conversion ArrowAssoc fromLEdgeImplicits[UL] to ArrowAssoc[LEdgeImplicits[UL]]

Ungrouped