Section: Visualization Toolkit Infovis Classes
To create an instance of class vtkRandomGraphSource, simply invoke its constructor as follows
obj = vtkRandomGraphSource
obj
is an instance of the vtkRandomGraphSource class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkRandomGraphSource = obj.NewInstance ()
vtkRandomGraphSource = obj.SafeDownCast (vtkObject o)
int = obj.GetNumberOfVertices ()
- The number of vertices in the graph.
obj.SetNumberOfVertices (int )
- The number of vertices in the graph.
int = obj.GetNumberOfVerticesMinValue ()
- The number of vertices in the graph.
int = obj.GetNumberOfVerticesMaxValue ()
- The number of vertices in the graph.
int = obj.GetNumberOfEdges ()
- If UseEdgeProbability is off, creates a graph with the specified number
of edges. Duplicate (parallel) edges are allowed.
obj.SetNumberOfEdges (int )
- If UseEdgeProbability is off, creates a graph with the specified number
of edges. Duplicate (parallel) edges are allowed.
int = obj.GetNumberOfEdgesMinValue ()
- If UseEdgeProbability is off, creates a graph with the specified number
of edges. Duplicate (parallel) edges are allowed.
int = obj.GetNumberOfEdgesMaxValue ()
- If UseEdgeProbability is off, creates a graph with the specified number
of edges. Duplicate (parallel) edges are allowed.
double = obj.GetEdgeProbability ()
- If UseEdgeProbability is on, adds an edge with this probability between 0 and 1
for each pair of vertices in the graph.
obj.SetEdgeProbability (double )
- If UseEdgeProbability is on, adds an edge with this probability between 0 and 1
for each pair of vertices in the graph.
double = obj.GetEdgeProbabilityMinValue ()
- If UseEdgeProbability is on, adds an edge with this probability between 0 and 1
for each pair of vertices in the graph.
double = obj.GetEdgeProbabilityMaxValue ()
- If UseEdgeProbability is on, adds an edge with this probability between 0 and 1
for each pair of vertices in the graph.
obj.SetIncludeEdgeWeights (bool )
- When set, includes edge weights in an array named "edge_weights".
Defaults to off. Weights are random between 0 and 1.
bool = obj.GetIncludeEdgeWeights ()
- When set, includes edge weights in an array named "edge_weights".
Defaults to off. Weights are random between 0 and 1.
obj.IncludeEdgeWeightsOn ()
- When set, includes edge weights in an array named "edge_weights".
Defaults to off. Weights are random between 0 and 1.
obj.IncludeEdgeWeightsOff ()
- When set, includes edge weights in an array named "edge_weights".
Defaults to off. Weights are random between 0 and 1.
obj.SetEdgeWeightArrayName (string )
- The name of the edge weight array. Default "edge weight".
string = obj.GetEdgeWeightArrayName ()
- The name of the edge weight array. Default "edge weight".
obj.SetDirected (bool )
- When set, creates a directed graph, as opposed to an undirected graph.
bool = obj.GetDirected ()
- When set, creates a directed graph, as opposed to an undirected graph.
obj.DirectedOn ()
- When set, creates a directed graph, as opposed to an undirected graph.
obj.DirectedOff ()
- When set, creates a directed graph, as opposed to an undirected graph.
obj.SetUseEdgeProbability (bool )
- When set, uses the EdgeProbability parameter to determine the density
of edges. Otherwise, NumberOfEdges is used.
bool = obj.GetUseEdgeProbability ()
- When set, uses the EdgeProbability parameter to determine the density
of edges. Otherwise, NumberOfEdges is used.
obj.UseEdgeProbabilityOn ()
- When set, uses the EdgeProbability parameter to determine the density
of edges. Otherwise, NumberOfEdges is used.
obj.UseEdgeProbabilityOff ()
- When set, uses the EdgeProbability parameter to determine the density
of edges. Otherwise, NumberOfEdges is used.
obj.SetStartWithTree (bool )
- When set, builds a random tree structure first, then adds additional
random edges.
bool = obj.GetStartWithTree ()
- When set, builds a random tree structure first, then adds additional
random edges.
obj.StartWithTreeOn ()
- When set, builds a random tree structure first, then adds additional
random edges.
obj.StartWithTreeOff ()
- When set, builds a random tree structure first, then adds additional
random edges.
obj.SetAllowSelfLoops (bool )
- If this flag is set to true, edges where the source and target
vertex are the same can be generated. The default is to forbid
such loops.
bool = obj.GetAllowSelfLoops ()
- If this flag is set to true, edges where the source and target
vertex are the same can be generated. The default is to forbid
such loops.
obj.AllowSelfLoopsOn ()
- If this flag is set to true, edges where the source and target
vertex are the same can be generated. The default is to forbid
such loops.
obj.AllowSelfLoopsOff ()
- If this flag is set to true, edges where the source and target
vertex are the same can be generated. The default is to forbid
such loops.
obj.SetAllowParallelEdges (bool )
- When set, multiple edges from a source to a target vertex are
allowed. The default is to forbid such loops.
bool = obj.GetAllowParallelEdges ()
- When set, multiple edges from a source to a target vertex are
allowed. The default is to forbid such loops.
obj.AllowParallelEdgesOn ()
- When set, multiple edges from a source to a target vertex are
allowed. The default is to forbid such loops.
obj.AllowParallelEdgesOff ()
- When set, multiple edges from a source to a target vertex are
allowed. The default is to forbid such loops.
obj.SetGeneratePedigreeIds (bool )
- Add pedigree ids to vertex and edge data.
bool = obj.GetGeneratePedigreeIds ()
- Add pedigree ids to vertex and edge data.
obj.GeneratePedigreeIdsOn ()
- Add pedigree ids to vertex and edge data.
obj.GeneratePedigreeIdsOff ()
- Add pedigree ids to vertex and edge data.
obj.SetVertexPedigreeIdArrayName (string )
- The name of the vertex pedigree id array. Default "vertex id".
string = obj.GetVertexPedigreeIdArrayName ()
- The name of the vertex pedigree id array. Default "vertex id".
obj.SetEdgePedigreeIdArrayName (string )
- The name of the edge pedigree id array. Default "edge id".
string = obj.GetEdgePedigreeIdArrayName ()
- The name of the edge pedigree id array. Default "edge id".
obj.SetSeed (int )
- Control the seed used for pseudo-random-number generation.
This ensures that vtkRandomGraphSource can produce repeatable
results.
int = obj.GetSeed ()
- Control the seed used for pseudo-random-number generation.
This ensures that vtkRandomGraphSource can produce repeatable
results.