Some synthetic data that sits in Spark.
Returns a chain graph of the given size with Long ID type.
Returns an empty GraphFrame of the given ID type.
Graph of friends in a social network.
gridIsingModel with vStd, eStd set to 1.0.
This method generates a grid Ising model with random parameters.
Length of one side of the grid. The grid will be of size n x n.
Standard deviation of normal distribution used to generate vertex factors "a". Default of 1.0.
Standard deviation of normal distribution used to generate edge factors "b". Default of 1.0.
GraphFrame. Vertices have columns "id" and "a". Edges have columns "src", "dst", and "b". Edges are directed, but they should be treated as undirected in any algorithms run on this model. Vertex IDs are of the form "i,j". E.g., vertex "1,3" is in the second row and fourth column of the grid.
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.
the number of leaves
Two densely connected blobs (vertices 0->n-1 and n->2n-1) connected by a single edge (0->n)
the size of each blob.