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
c

scalax.collection.edge.LBase

LEdgeImplicits

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LEdgeImplicits
  2. OuterLEdgeImplicits
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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] to any2stringadd[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] to ArrowAssoc[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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (LEdgeImplicits[UL]) ⇒ Boolean, msg: ⇒ Any): LEdgeImplicits[UL]
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] to Ensuring[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] to Ensuring[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] to Ensuring[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] to Ensuring[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: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] to StringFormat[LEdgeImplicits[UL]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  17. def handle(label: Any): Nothing
    Attributes
    protected
    Definition Classes
    OuterLEdgeImplicits
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. 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.

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. 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
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. 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
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (LEdgeImplicits[UL], B)
    Implicit
    This member is added by an implicit conversion from LEdgeImplicits[UL] to ArrowAssoc[LEdgeImplicits[UL]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from OuterLEdgeImplicits[UL]

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped