gf_graphframe: Create a new GraphFrame

Description Usage Arguments Examples

Description

Create a new GraphFrame

Usage

1
gf_graphframe(vertices = NULL, edges)

Arguments

vertices

A tbl_spark representing vertices.

edges

A tbl_psark representing edges.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(sparklyr)
sc <- spark_connect(master = "local", version = "2.3.0")
v_tbl <- sdf_copy_to(
  sc, data.frame(id = 1:3, name = LETTERS[1:3])
)
e_tbl <- sdf_copy_to(
  sc, data.frame(src = c(1, 2, 2), dst = c(2, 1, 3),
                 action = c("love", "hate", "follow"))
)
gf_graphframe(v_tbl, e_tbl)
gf_graphframe(edges = e_tbl)

## End(Not run)

graphframes documentation built on May 2, 2019, 9:14 a.m.