library(graphframes)
<- gf_friends(sc)
g gf_triangle_count(g)
Computes the number of triangles passing through each vertex.
R/gf_triangle_count.R
gf_triangle_count
Description
This algorithm ignores edge direction; i.e., all edges are treated as undirected. In a multigraph, duplicate edges will be counted only once.
Usage
gf_triangle_count(x, ...)
Arguments
Arguments | Description |
---|---|
x | An object coercable to a GraphFrame (typically, a gf_graphframe ). |
… | Optional arguments, currently not used. |