VTK
vtkKCoreDecomposition.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkKCoreDecomposition.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 -------------------------------------------------------------------------*/
46 #ifndef vtkKCoreDecomposition_h
47 #define vtkKCoreDecomposition_h
48 
49 #include "vtkInfovisCoreModule.h" // For export macro
50 #include "vtkGraphAlgorithm.h"
51 
52 class vtkIntArray;
53 
55 {
56 public:
57  static vtkKCoreDecomposition *New();
58 
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
65  vtkSetStringMacro(OutputArrayName);
67 
69 
72  vtkSetMacro(UseInDegreeNeighbors, bool);
73  vtkGetMacro(UseInDegreeNeighbors, bool);
74  vtkBooleanMacro(UseInDegreeNeighbors, bool);
76 
78 
81  vtkSetMacro(UseOutDegreeNeighbors, bool);
82  vtkGetMacro(UseOutDegreeNeighbors, bool);
83  vtkBooleanMacro(UseOutDegreeNeighbors, bool);
85 
87 
90  vtkSetMacro(CheckInputGraph, bool);
91  vtkGetMacro(CheckInputGraph, bool);
92  vtkBooleanMacro(CheckInputGraph, bool);
94 
95 protected:
98 
100 
101 private:
102 
103  char* OutputArrayName;
104 
105  bool UseInDegreeNeighbors;
106  bool UseOutDegreeNeighbors;
107  bool CheckInputGraph;
108 
109  // K-core partitioning implementation
110  void Cores(vtkGraph* g,
111  vtkIntArray* KCoreNumbers);
112 
113  vtkKCoreDecomposition(const vtkKCoreDecomposition&); // Not implemented.
114  void operator=(const vtkKCoreDecomposition&); // Not implemented.
115 };
116 
117 #endif
static vtkGraphAlgorithm * New()
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only graph as output.
Base class for graph data types.
Definition: vtkGraph.h:288
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKINFOVISCORE_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store zero or more vtkInformation instances.
Compute the k-core decomposition of the input graph.