Detailed Description
#include <bridge.h>
Public Member Functions | |
| Bridge () | |
| virtual | ~Bridge () |
| virtual SCIP_RETCODE | addNNodes (int _n_nodes)=0 |
| virtual SCIP_RETCODE | addNNodes (int _n_nodes, std::vector< int > weights)=0 |
| virtual int | getNNodes ()=0 |
| virtual int | getNEdges ()=0 |
| virtual SCIP_RETCODE | getEdges (std::vector< void * > &edges)=0 |
| virtual SCIP_Bool | isEdge (int i, int j)=0 |
| virtual int | getNNeighbors (int i)=0 |
| virtual std::vector< int > | getNeighbors (int i)=0 |
| virtual SCIP_RETCODE | addNode (int i, int weight)=0 |
| virtual SCIP_RETCODE | addNode ()=0 |
| virtual SCIP_RETCODE | addEdge (int i, int j, double weight)=0 |
| virtual SCIP_RETCODE | setEdge (int i, int j, double weight)=0 |
| virtual double | getEdgeWeight (int i, int j)=0 |
| virtual std::vector< std::pair< int, double > > | getNeighborWeights (int i) |
| virtual SCIP_RETCODE | deleteNode (int i)=0 |
| virtual SCIP_RETCODE | addEdge (int i, int j)=0 |
| virtual SCIP_RETCODE | deleteEdge (int i, int j)=0 |
| virtual int | graphGetWeights (int i)=0 |
| virtual SCIP_RETCODE | flush ()=0 |
| virtual SCIP_RETCODE | normalize ()=0 |
| virtual double | getEdgeWeightPercentile (double q)=0 |
Constructor & Destructor Documentation
◆ Bridge()
◆ ~Bridge()
Member Function Documentation
◆ addNNodes() [1/2]
|
pure virtual |
add n nodes in the graph at the same time. it is much faster than to call addNode() many times
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ addNNodes() [2/2]
|
pure virtual |
add n nodes in the graph at the same time. it is much faster than to call addNode() many times. weights represent node weights
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ getNNodes()
|
pure virtual |
get number of nodes in the graph
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ getNEdges()
|
pure virtual |
get number of edges in the graph
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ getEdges()
|
pure virtual |
get list of edges in the graph (not defined how edges are implemented)
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ isEdge()
|
pure virtual |
return whether a given pair of vertices is connected by an edge
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
References SCIP_Bool.
◆ getNNeighbors()
|
pure virtual |
get number of neighbors of a given node
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ getNeighbors()
|
pure virtual |
get a vector of all neighbors of a given node
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ addNode() [1/2]
|
pure virtual |
adds the node with the given weight to the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ addNode() [2/2]
|
pure virtual |
adds the node with 0 weight to the graph
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ addEdge() [1/2]
|
pure virtual |
adds the weighted edge to the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ setEdge()
|
pure virtual |
sets the weight of the edge in the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ getEdgeWeight()
|
pure virtual |
returns the weight of the edge in the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ getNeighborWeights()
|
inlinevirtual |
Reimplemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ deleteNode()
|
pure virtual |
deletes the given node from the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ addEdge() [2/2]
|
pure virtual |
adds the edge to the graph
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ deleteEdge()
|
pure virtual |
deletes the edge from the graph
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ graphGetWeights()
|
pure virtual |
return the weight of a node
Implemented in gcg::GraphTclique, and gcg::GraphGCG.
◆ flush()
|
pure virtual |
flushes the data stuctures, if needed
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ normalize()
|
pure virtual |
normalizes the edge weights, so that the biggest edge egiht in the graph is 1
Implemented in gcg::GraphGCG, and gcg::GraphTclique.
◆ getEdgeWeightPercentile()
|
pure virtual |
Implemented in gcg::GraphGCG, and gcg::GraphTclique.