VTK  9.0.20200930
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 -------------------------------------------------------------------------*/
35 #ifndef vtkBoostBrandesCentrality_h
36 #define vtkBoostBrandesCentrality_h
37 
38 #include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
39 #include "vtkVariant.h" // For variant type
40 
41 #include "vtkGraphAlgorithm.h"
42 
43 class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBrandesCentrality : public vtkGraphAlgorithm
44 {
45 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
55  vtkSetMacro(UseEdgeWeightArray, bool);
56  vtkBooleanMacro(UseEdgeWeightArray, bool);
58 
59  vtkSetMacro(InvertEdgeWeightArray, bool);
60  vtkBooleanMacro(InvertEdgeWeightArray, bool);
61 
63 
67  vtkGetStringMacro(EdgeWeightArrayName);
68  vtkSetStringMacro(EdgeWeightArrayName);
70 
71 protected:
73  ~vtkBoostBrandesCentrality() override;
74 
76 
77 private:
78  bool UseEdgeWeightArray;
79  bool InvertEdgeWeightArray;
80  char* EdgeWeightArrayName;
81 
83  void operator=(const vtkBoostBrandesCentrality&) = delete;
84 };
85 
86 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:51
vtkVariant.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkGraphAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkGraphAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkBoostBrandesCentrality
Compute Brandes betweenness centrality on a vtkGraph.
Definition: vtkBoostBrandesCentrality.h:43
vtkGraphAlgorithm::New
static vtkGraphAlgorithm * New()