Returns a chain graph of the given size with Long ID type. The vertex IDs are 0, 1, ..., n-1, and the edges are (0, 1), (1, 2), ...., (n-2, n-1).
gf_chain(sc, n)
A Spark connection.
Size of the graph to return.
# NOT RUN { gf_chain(sc, 5) # }
Run the code above in your browser using DataCamp Workspace