Returns an ArrayAdjacencyGraph that is generated randomly with the given parameters. numberOfNodes indicates the number of vertices the final graph will have. probability represents the probability of an edge between 2 vertices.
Constructor | Description |
|
Static member | Description |
|
|
Full Usage:
Gilbert.initDirectedAdjGraph numberOfNodes probability
Parameters:
int
probability : float
Returns: AdjGraph<int, int, float>
|
|
Full Usage:
Gilbert.initDirectedFGraph numberOfNodes probability
Parameters:
int
probability : float
Returns: FGraph<int, int, float>
|
|
Full Usage:
Gilbert.initUndirectedFGraph numberOfNodes probability
Parameters:
int
probability : float
Returns: FGraph<int, int, float>
|
|
Full Usage:
Gilbert.initUndirectedGraph rng numberOfNodes probability
Parameters:
Random
numberOfNodes : int
probability : float
Returns: UndirectedGraph<int, int, float>
|
|