A Sandcastle Documented Class Library
A Sandcastle Documented Class Library
GraphLibrary
Clustering Class
Clustering Methods
AverageClustering Method
ClusteringCoefficient Method
GeneralizedDegree Method
Transitivity Method
Triangles Method
Clustering
AverageClustering 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#
Copy
public
double
AverageClustering
(
BaseGraph
graph
,
List
<
int
>
nodes
=
null
,
bool
countZeros
=
true
)
Parameters
graph
Type:
GraphLibrary.Graphs
BaseGraph
BaseGraph graph.
nodes
(Optional)
Type:
System.Collections.Generic
List
Int32
List of nodes.
countZeros
(Optional)
Type:
System
Boolean
If False include only the nodes with nonzero clustering in the average.
Return Value
Type:
Double
Double: Avergae clustering.
See Also
Reference
Clustering Class
GraphLibrary Namespace