RandomGraph

scalation.modeling.clustering.RandomGraph
class RandomGraph(n: Int, p: Double, c: Int)

The RandomGraph class generates random undirected graphs with clusters (as adjacency matrices).

Value parameters

c

the number of clusters to generate

n

the number of nodes in the graph

p

the probability that any two nodes are connected

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def gen(): MatrixD

Generate a cluster random graph returning its adjacency matrix.

Generate a cluster random graph returning its adjacency matrix.

Attributes