trait MutableGraphCompanion[+CC[N, E[+X] <: EdgeLikeIn[X]] <: mutable.Graph[N, E[X]] with mutable.GraphLike[N, E[X], CC]] extends GraphCoreCompanion[CC]
- Alphabetic
- By Inheritance
- MutableGraphCompanion
- GraphCoreCompanion
- GraphCompanion
- GraphCompanionCanBuildFrom
- AnyRef
- Any
- by ChainingOps
- by EdgeAssoc
- by anyToNode
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- type Coll = CC[Nothing, Nothing]
- Attributes
- protected
- Definition Classes
- GraphCompanion
- type Config = CoreConfig
Type of configuration required for a specific
Graph
companion.Type of configuration required for a specific
Graph
companion.- Definition Classes
- GraphCoreCompanion → GraphCompanion
- class GraphCanBuildFrom[N, E[+X] <: EdgeLikeIn[X]] extends BuildFrom[Coll, Param[N, E], CC[N, E]]
- Definition Classes
- GraphCompanionCanBuildFrom
Abstract Value Members
- abstract def empty[N, E[+X] <: EdgeLikeIn[X]](implicit edgeT: ClassTag[E[N]], config: Config = defaultConfig): CC[N, E]
Creates an empty
Graph
instance.Creates an empty
Graph
instance.- Definition Classes
- GraphCoreCompanion → GraphCompanion
- abstract def from[N, E[+X] <: EdgeLikeIn[X]](nodes: Iterable[N] = Nil, edges: Iterable[E[N]])(implicit edgeT: ClassTag[E[N]], config: Config = defaultConfig): CC[N, E]
Produces a graph with a node set containing all
nodes
and edge ends inedges
and with an edge set containing alledges
but duplicates.Produces a graph with a node set containing all
nodes
and edge ends inedges
and with an edge set containing alledges
but duplicates. Duplicate exclusion takes place on the basis of values returned byhashCode
of the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweight
orlabel
. To include non-node edge components in the hash-code of an edge make use of any of the predefined key-weighted/key-labeled edges or mixExtendedKey
into your custom edge class.- nodes
the isolated and optionally any other non-isolated nodes to be included in the node set of the graph to be created.
- edges
all edges to be included in the edge set of the graph to be created. Edge ends will be added to the node set automatically.
- returns
A new graph instance containing
nodes
and all edge ends andedges
.
- Definition Classes
- GraphCoreCompanion → GraphCompanion
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toany2stringadd[MutableGraphCompanion[CC]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (MutableGraphCompanion[CC], B)
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toArrowAssoc[MutableGraphCompanion[CC]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[N, E[+X] <: EdgeLikeIn[X]](elems: Param[N, E]*)(implicit edgeT: ClassTag[E[N]], config: Config = defaultConfig): CC[N, E]
Creates a
Graph
with a node set built from all nodes inelems
including edge ends and with an edge set containing all edges inelems
.Creates a
Graph
with a node set built from all nodes inelems
including edge ends and with an edge set containing all edges inelems
. Duplicate exclusion takes place on the basis of values returned byhashCode
of the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweight
orlabel
. To include non-node edge components in the hash-code of an edge make use of any of the predefined key-weighted/key-labeled edges or mixExtendedKey
into your custom edge class.- elems
sequence of nodes and/or edges in an arbitrary order
- returns
A new graph instance containing the nodes and edges derived from
elems
.
- Definition Classes
- GraphCoreCompanion → GraphCompanion
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def defaultConfig: CoreConfig
The default configuration to be used in absence of a user-supplied configuration.
The default configuration to be used in absence of a user-supplied configuration.
- Definition Classes
- GraphCoreCompanion → GraphCompanion
- def ensuring(cond: (MutableGraphCompanion[CC]) => Boolean, msg: => Any): MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEnsuring[MutableGraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (MutableGraphCompanion[CC]) => Boolean): MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEnsuring[MutableGraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEnsuring[MutableGraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEnsuring[MutableGraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fill[N, E[+X] <: EdgeLikeIn[X]](nr: Int)(elem: => Param[N, E])(implicit edgeT: ClassTag[E[N]], config: Config = defaultConfig): CC[N, E]
Produces a graph containing the results of some element computation a number of times.
Produces a graph containing the results of some element computation a number of times. Duplicate exclusion takes place on the basis of values returned by
hashCode
of the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweight
orlabel
. To include non-node edge components in the hash-code of an edge make use of any of the predefined key-weighted/key-labeled edges or mixExtendedKey
into your custom edge class.- nr
the number of elements to be contained in the graph.
- elem
the element computation returning nodes or edges
nr
times.- returns
A graph that contains the results of
nr
evaluations ofelem
.
- Definition Classes
- GraphCoreCompanion → GraphCompanion
- def from[N, E[+X] <: EdgeLikeIn[X]](elems: IterableOnce[Param[N, E]])(implicit edgeT: ClassTag[E[N]], config: Config): CC[N, E]
Creates a
Graph
with a node set built from all nodes inelems
including edge ends and with an edge set containing all edges inelems
.Creates a
Graph
with a node set built from all nodes inelems
including edge ends and with an edge set containing all edges inelems
. Duplicate exclusion takes place on the basis of values returned byhashCode
of the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweight
orlabel
. To include non-node edge components in the hash-code of an edge make use of any of the predefined key-weighted/key-labeled edges or mixExtendedKey
into your custom edge class.- elems
sequence of nodes and/or edges in an arbitrary order
- returns
A new graph instance containing the nodes and edges derived from
elems
.
- Definition Classes
- GraphCompanion
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isDefined: Boolean
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
- final def isEdge: Boolean
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
- def isIn: Boolean
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- InParam → Param
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNode: Boolean
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- NodeParam
- final def isOut: Boolean
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Param
- val n1: MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEdgeAssoc[MutableGraphCompanion[CC]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder[N, E[+X] <: EdgeLikeIn[X]](implicit edgeT: ClassTag[E[N]], config: Config): Builder[Param[N, E], CC[N, E]]
- Definition Classes
- MutableGraphCompanion → GraphCompanion
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def pipe[B](f: (MutableGraphCompanion[CC]) => B): B
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toChainingOps[MutableGraphCompanion[CC]] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- def productElementNames: Iterator[String]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- Product
- val self: MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toChainingOps[MutableGraphCompanion[CC]] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- def stringPrefix: String
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- NodeParam
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tap[U](f: (MutableGraphCompanion[CC]) => U): MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toChainingOps[MutableGraphCompanion[CC]] performed by method ChainingOps in scalax.collection.
- Definition Classes
- ChainingOps
- def toString(): String
- Definition Classes
- AnyRef → Any
- val value: MutableGraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- Definition Classes
- OuterNode → NodeParam
- 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]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def ~[N >: N1](n2: N): UnDiEdge[N]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEdgeAssoc[MutableGraphCompanion[CC]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
- def ~>[N >: N1](n2: N): DiEdge[N]
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toEdgeAssoc[MutableGraphCompanion[CC]] performed by method EdgeAssoc in scalax.collection.GraphPredef.
- Definition Classes
- EdgeAssoc
- Annotations
- @inline()
Shadowed Implicit Value Members
- def toString(): String
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toOuterNode[MutableGraphCompanion[CC]] performed by method anyToNode in scalax.collection.GraphPredef.
- 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:(mutableGraphCompanion: OuterNode[MutableGraphCompanion[CC]]).toString()
- Definition Classes
- NodeParam → AnyRef → Any
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toStringFormat[MutableGraphCompanion[CC]] 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): (MutableGraphCompanion[CC], B)
- Implicit
- This member is added by an implicit conversion from MutableGraphCompanion[CC] toArrowAssoc[MutableGraphCompanion[CC]] 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.
Welcome to the Graph for Scala API reference. Some suggested navigation entry points:
Graph
mutable.Graph
and its inner nodes.GraphEdge
objectedge
packageGraphPredef
object andImplicits
object.GraphTraversal
andTraverserInnerNode
.RandomGraph
.GraphGen
.