VTK  9.1.0
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
43class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBrandesCentrality : public vtkGraphAlgorithm
44{
45public:
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
71protected:
74
76
77private:
78 bool UseEdgeWeightArray;
79 bool InvertEdgeWeightArray;
80 char* EdgeWeightArrayName;
81
83 void operator=(const vtkBoostBrandesCentrality&) = delete;
84};
85
86#endif
Compute Brandes betweenness centrality on a vtkGraph.
~vtkBoostBrandesCentrality() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkBoostBrandesCentrality * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.