Click or drag to resize

ClusteringTriangles 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#
public Dictionary<int, int> Triangles(
	BaseGraph graph,
	List<int> nodes = null
)

Parameters

graph
Type: GraphLibrary.GraphsBaseGraph
A BaseGraph graph.
nodes (Optional)
Type: System.Collections.GenericListInt32
A List of nodes, optional. Compute triangles for nodes in this container.

Return Value

Type: DictionaryInt32, Int32
Number of triangles keyed by node label.
See Also