VTK  9.2.6
vtkBoostBrandesCentrality.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoostBrandesCentrality.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
38 #ifndef vtkBoostBrandesCentrality_h
39 #define vtkBoostBrandesCentrality_h
40 
41 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
42 #include "vtkVariant.h" // For variant type
43 
44 #include "vtkGraphAlgorithm.h"
45 
46 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBrandesCentrality : public vtkGraphAlgorithm
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
58  vtkSetMacro(UseEdgeWeightArray, bool);
59  vtkBooleanMacro(UseEdgeWeightArray, bool);
61 
62  vtkSetMacro(InvertEdgeWeightArray, bool);
63  vtkBooleanMacro(InvertEdgeWeightArray, bool);
64 
66 
70  vtkGetStringMacro(EdgeWeightArrayName);
71  vtkSetStringMacro(EdgeWeightArrayName);
73 
74 protected:
76  ~vtkBoostBrandesCentrality() override;
77 
79 
80 private:
81  bool UseEdgeWeightArray;
82  bool InvertEdgeWeightArray;
83  char* EdgeWeightArrayName;
84 
86  void operator=(const vtkBoostBrandesCentrality&) = delete;
87 };
88 
89 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
Compute Brandes betweenness centrality on a vtkGraph.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.