Extracts a subgraph of 'size' vertices from graph 'g' by performing a breadth-first search from a random vertex.
Extracts a subgraph of 'size' vertices from graph 'g' by performing a breadth-first search from a random vertex.
the number of vertices to extract
the data graph to extract from
Given a graph 'g', performs a breadth first search starting at a random vertex until the breadth first tree contains 'size' vertices.
Given a graph 'g', performs a breadth first search starting at a random vertex until the breadth first tree contains 'size' vertices. At each junction, it chooses a random number of children to traverse, with that random number averaging to 'avDegree'.
the number of vertices to extract
the average out degree
the data graph to extract from
Generates a graph with power law degree distribution with exponent 'distPow' and uniformly distributed labels.
Generates a graph with power law degree distribution with exponent 'distPow' and uniformly distributed labels.
the number of vertices
the number of labels (distributed uniformly)
the maximum allowed degree for any vertex
the power/exponent
Generates a graph with power law degree distribution with exponent 'distPow' and power law distributed labels.
Generates a graph with power law degree distribution with exponent 'distPow' and power law distributed labels.
the number of vertices
the number of labels (distributed according to power law)
the maximum allowed degree for any vertex
the power/exponent
Generates a random connected graph by using genRandomGraph and checking whether it is connected.
Generates a random connected graph by using genRandomGraph and checking whether it is connected.
the number of vertices to generate
the number of labels (distributed uniformly)
the average degree
Generates a random graph with the specified size (number of vertices), average degree and labels evenly distributed across vertices from 0 to nLabels - 1.
Generates a random graph with the specified size (number of vertices), average degree and labels evenly distributed across vertices from 0 to nLabels - 1. Not necessarily a connected graph.
the number of vertices to generate
the number of labels (distributed uniformly)
the average degree
Generates a random graph with labels distributed based on a power law distribution (currently with the magic number 2.1 for the power law exponent).
Generates a random graph with labels distributed based on a power law distribution (currently with the magic number 2.1 for the power law exponent).
the number of vertices to generate
the number of labels (distributed according to power law)
the average degree
The
GraphGenerator2
object is used to build random graph with various characteristics.