|
GraphGeneratorsPreferentialAttachmentModel Method
|
Generates a graph using the preferential attachment model.
Namespace:
GraphLibrary
Assembly:
GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntaxpublic BaseGraph PreferentialAttachmentModel(
int numberOfNodes,
int averageNeighbors,
GraphTypes graphType = GraphTypes.GraphFastDirected
)
Parameters
- numberOfNodes
- Type: SystemInt32
Number of nodes in generated graph. Higher than 0. - averageNeighbors
- Type: SystemInt32
Average node degree. - graphType (Optional)
- Type: GraphLibrary.GraphsGraphTypes
Graph type, defaults to GraphFastDirected
Return Value
Type:
BaseGraphA generated preferential attachment graph.
See Also