gf_triangle_count: Computes the number of triangles passing through each vertex.

Description Usage Arguments Examples

View source: R/gf_triangle_count.R

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

1

Arguments

x

An object coercable to a GraphFrame (typically, a gf_graphframe).

...

Optional arguments, currently not used.

Examples

1
2
3
4
5
## Not run: 
g <- gf_friends(sc)
gf_triangle_count(g)

## End(Not run)

rstudio/graphframes documentation built on May 17, 2019, 8:44 p.m.