gf_triangle_count {graphframes}R Documentation

Computes the number of triangles passing through each vertex.

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

x

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

...

Optional arguments, currently not used.

Examples

## Not run: 
g <- gf_friends(sc)
gf_triangle_count(g)

## End(Not run)

[Package graphframes version 0.1.2 Index]