trait GraphCompanion[+CC[N, E[X] <: EdgeLikeIn[X]] <: Graph[N, E[X]] with GraphLike[N, E[X], CC]] extends AnyRef
Methods common to Graph companion objects in the core module.
- CC
the kind of type of the graph that is to become the companion class/trait of the object extending this trait.
- Alphabetic
- By Inheritance
- GraphCompanion
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Type Members
-
type
Coll = CC[_, Nothing]
- Attributes
- protected[this]
-
abstract
type
Config <: GraphConfig
Type of configuration required for a specific
Graphcompanion. - class GraphCanBuildFrom[N, E[X] <: EdgeLikeIn[X]] extends CanBuildFrom[Coll, Param[N, E], CC[N, E]]
Abstract Value Members
-
abstract
def
defaultConfig: Config
The default configuration to be used in absence of a user-supplied configuration.
-
abstract
def
empty[N, E[X] <: EdgeLikeIn[X]](implicit edgeT: ClassTag[E[N]], config: Config): CC[N, E]
Creates an empty
Graphinstance. -
abstract
def
from[N, E[X] <: EdgeLikeIn[X]](nodes: Traversable[N] = Nil, edges: Traversable[E[N]])(implicit edgeT: ClassTag[E[N]], config: Config): CC[N, E]
Produces a graph with a node set containing all
nodesand edge ends inedgesand with an edge set containing alledgesbut duplicates.Produces a graph with a node set containing all
nodesand edge ends inedgesand with an edge set containing alledgesbut duplicates. Duplicate exclusion takes place on the basis of values returned byhashCodeof the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweightorlabel. 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 mixExtendedKeyinto 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
nodesand all edge ends andedges.
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 GraphCompanion[CC] to any2stringadd[GraphCompanion[CC]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (GraphCompanion[CC], B)
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to ArrowAssoc[GraphCompanion[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): CC[N, E]
Creates a
Graphwith a node set built from all nodes inelemsincluding edge ends and with an edge set containing all edges inelems.Creates a
Graphwith a node set built from all nodes inelemsincluding edge ends and with an edge set containing all edges inelems. Duplicate exclusion takes place on the basis of values returned byhashCodeof the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweightorlabel. 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 mixExtendedKeyinto 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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (GraphCompanion[CC]) ⇒ Boolean, msg: ⇒ Any): GraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to Ensuring[GraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (GraphCompanion[CC]) ⇒ Boolean): GraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to Ensuring[GraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): GraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to Ensuring[GraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): GraphCompanion[CC]
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to Ensuring[GraphCompanion[CC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): 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): 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
hashCodeof the supplied nodes and edges. The hash-code value of an edge is determined by its ends and optionally by other edge components such asweightorlabel. 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 mixExtendedKeyinto your custom edge class.- nr
the number of elements to be contained in the graph.
- elem
the element computation returning nodes or edges
nrtimes.- returns
A graph that contains the results of
nrevaluations ofelem.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to StringFormat[GraphCompanion[CC]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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]]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (GraphCompanion[CC], B)
- Implicit
- This member is added by an implicit conversion from GraphCompanion[CC] to ArrowAssoc[GraphCompanion[CC]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Welcome to the Graph for Scala API reference. Some suggested navigation entry points:
Graphmutable.Graphand its inner nodes.GraphEdgeobjectedgepackageGraphPredefobject andImplicitsobject.GraphTraversalandTraverserInnerNode.RandomGraph.GraphGen.