Click or drag to resize

GraphGeneratorsErdosRenyiGraph Method

Creates Erdos-Renyi graph.

Namespace:  GraphLibrary
Assembly:  GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
public BaseGraph ErdosRenyiGraph(
	int numberOfNodes,
	double propabilityOfEdge,
	GraphTypes graphType = GraphTypes.GraphFastDirected
)

Parameters

numberOfNodes
Type: SystemInt32
Number of nodes in generated graph. Higher than 0.
propabilityOfEdge
Type: SystemDouble
Probability of the edge between two nodes. Value between 0 and 1.
graphType (Optional)
Type: GraphLibrary.GraphsGraphTypes
Graph type, defaults to GraphFastDirected

Return Value

Type: BaseGraph
A ErdosReny graph.
See Also