Go to the documentation of this file.
55 #include "vtkCommonDataModelModule.h"
153 void operator=(const
vtkTree&) VTK_DELETE_FUNCTION;
static vtkTree * GetData(vtkInformationVector *v, int i=0)
static vtkTree * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
vtkIdType GetParent(vtkIdType v)
Get the parent of a vertex.
int GetDataObjectType() override
Return what type of dataset this is.
bool IsLeaf(vtkIdType vertex)
Return whether the vertex is a leaf (i.e.
A rooted tree data structure.
void GetChildren(vtkIdType v, vtkAdjacentVertexIterator *it)
Get the child vertices of a vertex.
A rooted tree data structure.
vtkIdType GetChild(vtkIdType v, vtkIdType i)
Get the i-th child of a parent vertex.
virtual vtkIdType GetOutDegree(vtkIdType v)
The number of outgoing edges from vertex v.
a simple class to control print indentation
vtkIdType GetLevel(vtkIdType v)
Get the level of the vertex in the tree.
vtkEdgeType GetParentEdge(vtkIdType v)
Get the edge connecting the vertex to its parent.
vtkIdType GetNumberOfChildren(vtkIdType v)
Get the number of children of a vertex.
virtual void GetAdjacentVertices(vtkIdType v, vtkAdjacentVertexIterator *it)
Initializes the adjacent vertex iterator to iterate over all outgoing vertices from vertex v.
Iterates through adjacent vertices in a graph.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of vtkIdType
virtual void ReorderChildren(vtkIdType parent, vtkIdTypeArray *children)
Reorder the children of a parent vertex.
Base class for graph data types.