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
Triangles Method
Compute the number of triangles. Finds the number of triangles that include a node as one vertex.
Namespace:
GraphLibrary
Assembly:
GraphLibrary (in GraphLibrary.dll) Version: 1.0.1
Syntax
C#
Copy
public
Dictionary
<
int
,
int
>
Triangles
(
BaseGraph
graph
,
List
<
int
>
nodes
=
null
)
Parameters
graph
Type:
GraphLibrary.Graphs
BaseGraph
A BaseGraph graph.
nodes
(Optional)
Type:
System.Collections.Generic
List
Int32
A List of nodes, optional. Compute triangles for nodes in this container.
Return Value
Type:
Dictionary
Int32
,
Int32
Number of triangles keyed by node label.
See Also
Reference
Clustering Class
GraphLibrary Namespace