|
GraphGeneratorsErdosRenyiGraph Method
|
Creates Erdos-Renyi graph.
Namespace:
GraphLibrary
Assembly:
GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntaxpublic 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:
BaseGraphA ErdosReny graph.
See Also