graphframes (version 0.1.2)

gf_star: Generate a star graph

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

sc

A Spark connection.

n

The number of leaves.

Examples

Run this code
# NOT RUN {
gf_star(sc, 5)
# }

Run the code above in your browser using DataLab