Generate a star graph

R/gf_examples.R

gf_star

Description

Returns a star graph with Long ID type, consisting of a central element indexed 0 (the root) and the n other leaf vertices 1, 2, …, n. 

Usage

 
gf_star(sc, n) 

Arguments

Arguments Description
sc A Spark connection.
n The number of leaves.

Examples

library(graphframes)
 
gf_star(sc, 5)