VTK  9.3.0
vtkDirectedGraph.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
34#ifndef vtkDirectedGraph_h
35#define vtkDirectedGraph_h
36
37#include "vtkCommonDataModelModule.h" // For export macro
38#include "vtkGraph.h"
39
40VTK_ABI_NAMESPACE_BEGIN
41class VTKCOMMONDATAMODEL_EXPORT vtkDirectedGraph : public vtkGraph
42{
43public:
45 vtkTypeMacro(vtkDirectedGraph, vtkGraph);
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
51 int GetDataObjectType() override { return VTK_DIRECTED_GRAPH; }
52
54
60
66 bool IsStructureValid(vtkGraph* g) override;
67
68protected:
71
72private:
73 vtkDirectedGraph(const vtkDirectedGraph&) = delete;
74 void operator=(const vtkDirectedGraph&) = delete;
75};
76
77VTK_ABI_NAMESPACE_END
78#endif
A directed graph.
int GetDataObjectType() override
Return what type of dataset this is.
static vtkDirectedGraph * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool IsStructureValid(vtkGraph *g) override
Check the storage, and accept it if it is a valid undirected graph.
static vtkDirectedGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.
static vtkDirectedGraph * GetData(vtkInformationVector *v, int i=0)
Retrieve a graph from an information vector.
~vtkDirectedGraph() override
Base class for graph data types.
Definition vtkGraph.h:290
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_DIRECTED_GRAPH
Definition vtkType.h:88