VTK  9.2.5
vtkBoostBetweennessClustering.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBoostGraphAdapter.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
34#ifndef vtkBoostBetweennessClustering_h
35#define vtkBoostBetweennessClustering_h
36
37#include "vtkGraphAlgorithm.h"
38#include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
39
40class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBetweennessClustering : public vtkGraphAlgorithm
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
49
51
55 vtkSetMacro(Threshold, double);
56 vtkGetMacro(Threshold, double);
58
60
64 vtkSetMacro(UseEdgeWeightArray, bool);
65 vtkBooleanMacro(UseEdgeWeightArray, bool);
67
68 vtkSetMacro(InvertEdgeWeightArray, bool);
69 vtkBooleanMacro(InvertEdgeWeightArray, bool);
70
72
76 vtkGetStringMacro(EdgeWeightArrayName);
77 vtkSetStringMacro(EdgeWeightArrayName);
79
81
85 vtkSetStringMacro(EdgeCentralityArrayName);
87
88protected:
89 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
90 vtkInformationVector* outputVector) override;
91
92 int FillOutputPortInformation(int port, vtkInformation* info) override;
93
94private:
95 double Threshold;
96 bool UseEdgeWeightArray;
97 bool InvertEdgeWeightArray;
98 char* EdgeWeightArrayName;
99 char* EdgeCentralityArrayName;
100
102 void operator=(const vtkBoostBetweennessClustering&) = delete;
103};
104
105#endif // vtkBoostBetweennessClustering_h
Implements graph clustering based on edge betweenness centrality.
static vtkBoostBetweennessClustering * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkBoostBetweennessClustering() override
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
Superclass for algorithms that produce only graph as output.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.