VTK  9.5.20250802
vtkDirectedAcyclicGraph.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
33#ifndef vtkDirectedAcyclicGraph_h
34#define vtkDirectedAcyclicGraph_h
35
36#include "vtkCommonDataModelModule.h" // For export macro
37#include "vtkDirectedGraph.h"
38#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39
40VTK_ABI_NAMESPACE_BEGIN
41class vtkIdTypeArray;
42
43class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkDirectedAcyclicGraph : public vtkDirectedGraph
44{
45public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
53 int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_DIRECTED_ACYCLIC_GRAPH; }
54
56
62
63protected:
66
71 bool IsStructureValid(vtkGraph* g) override;
72
73private:
75 void operator=(const vtkDirectedAcyclicGraph&) = delete;
76};
77
78VTK_ABI_NAMESPACE_END
79#endif
A rooted tree data structure.
static vtkDirectedAcyclicGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
bool IsStructureValid(vtkGraph *g) override
Check the storage, and accept it if it is a valid tree.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDirectedAcyclicGraph * New()
static vtkDirectedAcyclicGraph * GetData(vtkInformationVector *v, int i=0)
Retrieve a graph from an information vector.
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
~vtkDirectedAcyclicGraph() override
A directed graph.
Base class for graph data types.
Definition vtkGraph.h:342
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ VTK_DIRECTED_ACYCLIC_GRAPH
Definition vtkType.h:106
#define VTK_MARSHALAUTO