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
ClusteringCoefficient Method
Compute the clustering coefficient for nodes. Implemented only for unweighted and undirected graphs.
Namespace:
GraphLibrary
Assembly:
GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
Copy
public
Dictionary
<
int
,
double
>
ClusteringCoefficient
(
BaseGraph
graph
,
List
<
int
>
nodes
=
null
)
Parameters
graph
Type:
GraphLibrary.Graphs
BaseGraph
Basegraph graph.
nodes
(Optional)
Type:
System.Collections.Generic
List
Int32
List of nodes - optional.
Return Value
Type:
Dictionary
Int32
,
Double
Dictionary of clustering coefficients at specified nodes.
See Also
Reference
Clustering Class
GraphLibrary Namespace