Class GraphGenerators
1
Object
2
org.apache.spark.graphx.util.GraphGenerators
Copied!
Constructor:
GraphGenerators()
Methods:
1
static Edge<Object>[] generateRandomEdges(int src, int numEdges, int maxVertexId, long seed)
2
​
3
static Graph<scala.Tuple2<Object,Object>,Object> gridGraph(SparkContext sc, int rows, int cols)
4
​
5
Create rows by cols grid graph with each vertex connected to its row+1 and col+1 neighbors.
6
​
7
static Graph<Object,Object> logNormalGraph(SparkContext sc, int numVertices, int numEParts, double mu, double sigma, long seed)
8
​
9
Generate a graph whose vertex out degree distribution is log normal.
10
​
11
static double RMATa()
12
​
13
static double RMATb()
14
​
15
static double RMATc()
16
​
17
static double RMATd()
18
​
19
static Graph<Object,Object> rmatGraph(SparkContext sc, int requestedNumVertices, int numEdges)
20
​
21
A random graph generator using the R-MAT model, proposed in "R-MAT: A Recursive Model for Graph Mining" by Chakrabarti et al.
22
​
23
static Graph<Object,Object> starGraph(SparkContext sc, int nverts)
24
​
25
Create a star graph with vertex 0 being the center.
Copied!
Last modified 1yr ago
Copy link