Click or drag to resize

ClusteringAverageClustering Method

Compute the average clustering coefficient for the graph G. The clustering coefficient for the graph is the average.

Namespace:  GraphLibrary
Assembly:  GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
public double AverageClustering(
	BaseGraph graph,
	List<int> nodes = null,
	bool countZeros = true
)

Parameters

graph
Type: GraphLibrary.GraphsBaseGraph
BaseGraph graph.
nodes (Optional)
Type: System.Collections.GenericListInt32
List of nodes.
countZeros (Optional)
Type: SystemBoolean
If False include only the nodes with nonzero clustering in the average.

Return Value

Type: Double
Double: Avergae clustering.
See Also