graphalgorithms_def.h
Go to the documentation of this file.
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
139 int minPts /**< minimum number of neighbors needed to define a core point (can be fixed to 4 as stated in the paper) */
159 std::vector<std::pair<int, double> > NeighborPts_row = graph.getNeighborWeights(i); // gets ALL connected points
179 // Add border points also. We assign the border point the same label as the first core point. This is basically arbitrary, but not random.
186 std::vector<std::pair<int, double> > NeighborPts_row = graph.getNeighborWeights(i); // gets ALL connected points // holds ONLY the neighbors within the radius
228 std::vector<std::pair<int, double> > NeighborPts_tmp_row = graph.getNeighborWeights(neighbor); // gets ALL connected points
371 // reassign the labels so that they start from 0 (actually this is done in postProcess, so we can skip this part here)
static SCIP_RETCODE partition(SCIP *scip, SCIP_VAR **J, int *Jsize, SCIP_Longint *priority, SCIP_VAR **F, int Fsize, SCIP_VAR **origvar, SCIP_Real *median)
Definition: branch_generic.c:910
SCIP_VAR * a
SCIP_VAR ** b
SCIP_VAR ** y
SCIP_VAR ** x
Definition: graph_gcg.h:50
static SCIP_Real computeMincut(Hypergraph< T > &graph)
Definition: graphalgorithms_def.h:84
static std::vector< int > mst(Graph< GraphGCG > &graph, double cutoff, int minPts=4)
Definition: graphalgorithms_def.h:261
static int weightComp(const void *a, const void *b)
Definition: graphalgorithms_def.h:388
static std::vector< int > mcl(Graph< GraphGCG > &graph, int &stoppedAfter, double inflatefac, int maxiters=25, int expandfac=2)
Definition: graphalgorithms_def.h:435
static SCIP_Real computekMetric(Hypergraph< T > &graph)
Definition: graphalgorithms_def.h:110
static SCIP_Real computeSoed(Hypergraph< T > &graph)
Definition: graphalgorithms_def.h:60
static void mstunion(std::vector< subset > &subsets, int x, int y)
Definition: graphalgorithms_def.h:412
static int mstfind(std::vector< subset > &subsets, int i)
Definition: graphalgorithms_def.h:399
static std::vector< int > dbscan(Graph< GraphGCG > &graph, double eps, int minPts=4)
Definition: graphalgorithms_def.h:136
static void expandCluster(Graph< T > &graph, std::vector< bool > &visited, std::vector< bool > &is_core, std::vector< int > &labels, int point, std::vector< int > &NeighborPts, int curr_cluster, double eps, int minPts)
Definition: graphalgorithms_def.h:202
virtual std::vector< int > getPartition() const
Definition: graph_interface.h:61
Definition: graph.h:54
std::vector< std::pair< int, double > > getNeighborWeights(int i)
Definition: graph_def.h:273
Definition: hypergraph.h:55
std::vector< int > getHyperedgeNodes(int i)
Definition: hypergraph_def.h:158
#define SCIP_Real
#define nnodes
Implementation of the graph which supports both node and edge weights.
interface to the SCIP tclique graph library
several metrics for graphs
Definition: class_conspartition.cpp:44
real eps