VTK  9.1.0
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
31#ifndef vtkBoostBetweennessClustering_h
32#define vtkBoostBetweennessClustering_h
33
34#include "vtkGraphAlgorithm.h"
35#include "vtkInfovisBoostGraphAlgorithmsModule.h" // For export macro
36
37class VTKINFOVISBOOSTGRAPHALGORITHMS_EXPORT vtkBoostBetweennessClustering : public vtkGraphAlgorithm
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
46
48
52 vtkSetMacro(Threshold, double);
53 vtkGetMacro(Threshold, double);
55
57
61 vtkSetMacro(UseEdgeWeightArray, bool);
62 vtkBooleanMacro(UseEdgeWeightArray, bool);
64
65 vtkSetMacro(InvertEdgeWeightArray, bool);
66 vtkBooleanMacro(InvertEdgeWeightArray, bool);
67
69
73 vtkGetStringMacro(EdgeWeightArrayName);
74 vtkSetStringMacro(EdgeWeightArrayName);
76
78
82 vtkSetStringMacro(EdgeCentralityArrayName);
84
85protected:
86 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
87 vtkInformationVector* outputVector) override;
88
90
91private:
92 double Threshold;
93 bool UseEdgeWeightArray;
94 bool InvertEdgeWeightArray;
95 char* EdgeWeightArrayName;
96 char* EdgeCentralityArrayName;
97
99 void operator=(const vtkBoostBetweennessClustering&) = delete;
100};
101
102#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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453