RandomGraph

scalax.collection.generator.RandomGraph
See theRandomGraph companion object
class RandomGraph[N, E <: Edge[N], G <: ([X, Y <: Edge[X]] =>> AnyGraph[X, Y] & GraphLike[X, Y, G])](val graphCompanion: GenericGraphFactory[G], val order: Int, nodeFactory: => N, nodeDegree: NodeDegreeRange, edgeCompanions: Set[EdgeCompanionBase], connected: Boolean, weightFactory: Option[() => Long], labelFactory: Option[() => Any])(implicit nodeTag: ClassTag[N])

Supports random graph creation for graphs of any type with variable metrics.

Type parameters

E

Kind of type of the edges the generated will contain.

G

Kind of type of the graph to be generated.

N

Type of the nodes the generated will contain.

Value parameters

connected

Whether the generated graph should be connected.

edgeCompanions

The edge types to be used in the generated graph.

graphCompanion

The graph companion the factory method fromof which is to be called to create random graphs.

nodeDegree

The characteristics of node degrees such as the span of degrees for the graph to be generated.

nodeFactory

The function responsible for generating nodes.

order

The total number of nodes the generated random graph should contain.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def draw: G[N, E]

Returns a random graph of the specified type and with the metrics passed to the enclosing class.

Returns a random graph of the specified type and with the metrics passed to the enclosing class.

Attributes

def empty: G[N, E]

Returns an empty graph of the type as specified for the enclosing class.

Returns an empty graph of the type as specified for the enclosing class.

Attributes

Concrete fields

val order: Int

Implicits

Implicits

implicit val graphConfig: GraphConfig