Skip to content

@graphty/algorithms / index / TriangleCountResult

Interface: TriangleCountResult ​

Defined in: indexed/triangles.ts:4

Result of triangle counting.

Properties ​

coefficient ​

readonly coefficient: NumericVector

Defined in: indexed/triangles.ts:14

Each node's local clustering coefficient, 2 T(v) / (d(v) (d(v) - 1)) with d(v) its number of distinct neighbours. 0 -- a defined value, not a missing one -- for a node with fewer than two neighbours, so a star gives all zeros.


perNode ​

readonly perNode: U32

Defined in: indexed/triangles.ts:6

The triangles each node lies in.


total ​

readonly total: number

Defined in: indexed/triangles.ts:8

The triangles of the graph, each counted once.


transitivity ​

readonly transitivity: number

Defined in: indexed/triangles.ts:16

The graph's transitivity, 3 x triangles / connected triples; 0 when there is no connected triple.