object GraphGen
Provides convenience metrics and methods for the generation of graphs
by means of org.scalacheck.Arbitrary[G[N,E]]
.
- Alphabetic
- By Inheritance
- GraphGen
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Metrics[N] extends MetricsBase[N]
Represents graph metrics like
order
,nodeDegrees
andconnected
excluding the type of nodes, edges and the type of the graph to be generated.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[N, E <: Edge[N], G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G], order: Int, nodeGen: Gen[N], nodeDegrees: NodeDegreeRange, edgeCompanions: Set[EdgeCompanionBase], connected: Boolean, weightFactory: Option[Gen[Long]], labelFactory: Option[Gen[Any]])(implicit nodeTag: ClassTag[N]): GraphGen[N, E, G]
- 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 diGraph[N, G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G], metrics: Metrics[N])(implicit nodeTag: ClassTag[N]): Arbitrary[G[N, DiEdge[N]]]
Returns an
org.scalacheck.Arbitrary[G[N,DiEdge]]
for non-labeled directed graphs of any metrics and any type.Returns an
org.scalacheck.Arbitrary[G[N,DiEdge]]
for non-labeled directed graphs of any metrics and any type.- graphCompanion
The graph companion object such as
scalax.collection.Graph
to be used to generate graphs.- metrics
The
Metrics
to be applied to the generated graph.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromMetrics[N, E <: Edge[N], G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G], metrics: Metrics[N], edgeCompanions: Set[EdgeCompanionBase])(implicit nodeTag: ClassTag[N]): GraphGen[N, E, G]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def smallConnectedIntDi[G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G]): Arbitrary[G[Int, DiEdge[Int]]]
Returns an
org.scalacheck.Arbitrary[G[Int,DiEdge]]
for small, connected, non-labeled directed graphs with the metrics defined bySmallInt
.Returns an
org.scalacheck.Arbitrary[G[Int,DiEdge]]
for small, connected, non-labeled directed graphs with the metrics defined bySmallInt
.- graphCompanion
The graph companion object such as
scalax.collection.Graph
to be used to generate graphs.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tinyConnectedIntDi[G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G]): Arbitrary[G[Int, DiEdge[Int]]]
Returns an
org.scalacheck.Arbitrary[G[Int,DiEdge]]
for tiny, connected, non-labeled directed graphs with the metrics defined byTinyInt
.Returns an
org.scalacheck.Arbitrary[G[Int,DiEdge]]
for tiny, connected, non-labeled directed graphs with the metrics defined byTinyInt
.- graphCompanion
The graph companion object such as
scalax.collection.Graph
to be used to generate graphs.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unDiGraph[N, G[X, Y <: Edge[X]] <: AnyGraph[X, Y] with GraphLike[X, Y, G]](graphCompanion: GenericGraphFactory[G], metrics: Metrics[N])(implicit nodeTag: ClassTag[N]): Arbitrary[G[N, UnDiEdge[N]]]
Returns an
org.scalacheck.Arbitrary[G[N,UnDiEdge]]
for non-labeled undirected graphs of any metrics and any type.Returns an
org.scalacheck.Arbitrary[G[N,UnDiEdge]]
for non-labeled undirected graphs of any metrics and any type.- graphCompanion
The graph companion object such as
scalax.collection.Graph
to be used to generate graphs.- metrics
The
Metrics
to be applied to the generated graph.
- 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])
- object SmallInt extends Metrics[Int]
Predefined metrics of a 'small' graph with the node type of
Int
, an order of20
and a node degree range of2
to5
includingorg.scalacheck.Gen[Int]
. - object TinyInt extends Metrics[Int]
Predefined metrics of a 'tiny' graph with the node type of
Int
, an order of5
and a node degree range of2
to4
includingorg.scalacheck.Gen[Int]
.
Welcome to the Graph for Scala API reference. Some suggested entry points:
AnyGraph
immutable.Graph
and its inner nodesmutable.Graph
and its inner nodes.edges
package and its subpackageshyperedges
package and its subpackages.labeled edges
packagemultilabeled edges
packagelabeled hyperedges
packagemultilabeled hyperedges
packageordered labeled hyperedges
packageordered multilabeled hyperedges
objectgeneric
package.GraphTraversal
andTraverserInnerNode
.RandomGraph
.GraphGen
.