public class RandomCloudGraph extends Object implements GraphGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
hcount |
protected boolean[] |
ishub |
String |
name |
protected int[] |
nodetypes |
protected int[][] |
typeconnectivity |
protected int[] |
typecounts |
| Constructor and Description |
|---|
RandomCloudGraph(String gname,
int[] nt,
boolean[] ih,
int[][] tc) |
RandomCloudGraph(String gname,
int[] typecounts,
int hcount,
int[][] tc) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
findEnteranceNodes(GraphBuilder g) |
void |
generateGraph(double avgDegree,
int numberOfEdges,
long seed,
GraphBuilder builder)
Generates a graph based on the given parameters using the given
GraphBuilder. |
void |
generateGraph(int numberOfNodes,
double avgDegree,
long seed,
GraphBuilder builder)
Generates a graph based on the given parameters using the given
GraphBuilder. |
boolean[] |
getHubs() |
int[] |
getNodeSequence(int[] typeCnts) |
int[] |
getNodeTypes() |
protected void |
getRandomLOD(int N,
double degree,
long seed,
double outlinkspct,
GraphBuilder builder) |
protected int[] |
weightedSampleWithoutReplacement(int n,
int m,
int[] wt,
Random generator) |
public String name
protected int[] nodetypes
protected boolean[] ishub
protected int[][] typeconnectivity
protected int hcount
protected int[] typecounts
public RandomCloudGraph(String gname, int[] nt, boolean[] ih, int[][] tc)
public RandomCloudGraph(String gname, int[] typecounts, int hcount, int[][] tc)
public boolean[] getHubs()
public int[] getNodeTypes()
public void generateGraph(int numberOfNodes,
double avgDegree,
long seed,
GraphBuilder builder)
GraphGeneratorGraphBuilder.generateGraph in interface GraphGeneratornumberOfNodes - the number of nodes the generated graph should haveavgDegree - the average degree the nodes in the graph should haveseed - the seed that should be used to initialize pseudo random processes
to enable reproducibility of graphs.builder - the GraphBuilder that should be used to create the graph.public void generateGraph(double avgDegree,
int numberOfEdges,
long seed,
GraphBuilder builder)
GraphGeneratorGraphBuilder.generateGraph in interface GraphGeneratoravgDegree - the average degree the nodes in the graph should havenumberOfEdges - the number of edges the generated graph should haveseed - the seed that should be used to initialize pseudo random processes
to enable reproducibility of graphs.builder - the GraphBuilder that should be used to create the graph.protected void getRandomLOD(int N,
double degree,
long seed,
double outlinkspct,
GraphBuilder builder)
public int[] findEnteranceNodes(GraphBuilder g)
public int[] getNodeSequence(int[] typeCnts)
protected int[] weightedSampleWithoutReplacement(int n,
int m,
int[] wt,
Random generator)
Copyright © 2019–2020. All rights reserved.