32 #ifndef vtkRandomGraphSource_h
33 #define vtkRandomGraphSource_h
36 #include "vtkInfovisCoreModule.h"
39 class vtkPVXMLElement;
52 vtkGetMacro(NumberOfVertices,
int);
61 vtkGetMacro(NumberOfEdges,
int);
70 vtkGetMacro(EdgeProbability,
double);
71 vtkSetClampMacro(EdgeProbability,
double, 0.0, 1.0);
79 vtkSetMacro(IncludeEdgeWeights,
bool);
80 vtkGetMacro(IncludeEdgeWeights,
bool);
81 vtkBooleanMacro(IncludeEdgeWeights,
bool);
88 vtkSetStringMacro(EdgeWeightArrayName);
89 vtkGetStringMacro(EdgeWeightArrayName);
96 vtkSetMacro(Directed,
bool);
97 vtkGetMacro(Directed,
bool);
98 vtkBooleanMacro(Directed,
bool);
106 vtkSetMacro(UseEdgeProbability,
bool);
107 vtkGetMacro(UseEdgeProbability,
bool);
108 vtkBooleanMacro(UseEdgeProbability,
bool);
116 vtkSetMacro(StartWithTree,
bool);
117 vtkGetMacro(StartWithTree,
bool);
118 vtkBooleanMacro(StartWithTree,
bool);
127 vtkSetMacro(AllowSelfLoops,
bool);
128 vtkGetMacro(AllowSelfLoops,
bool);
129 vtkBooleanMacro(AllowSelfLoops,
bool);
137 vtkSetMacro(AllowParallelEdges,
bool);
138 vtkGetMacro(AllowParallelEdges,
bool);
139 vtkBooleanMacro(AllowParallelEdges,
bool);
146 vtkSetMacro(GeneratePedigreeIds,
bool);
147 vtkGetMacro(GeneratePedigreeIds,
bool);
148 vtkBooleanMacro(GeneratePedigreeIds,
bool);
155 vtkSetStringMacro(VertexPedigreeIdArrayName);
156 vtkGetStringMacro(VertexPedigreeIdArrayName);
163 vtkSetStringMacro(EdgePedigreeIdArrayName);
164 vtkGetStringMacro(EdgePedigreeIdArrayName);
173 vtkSetMacro(Seed,
int);
174 vtkGetMacro(Seed,
int);
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
a simple class to control print indentation
a graph with random edges
char * EdgeWeightArrayName
char * EdgePedigreeIdArrayName
static vtkRandomGraphSource * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
char * VertexPedigreeIdArrayName
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkRandomGraphSource() override
int RequestDataObject(vtkInformation *, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Creates directed or undirected output based on Directed flag.