1 #ifndef G2O_BACKBONE_TREE_ACTION_ 2 #define G2O_BACKBONE_TREE_ACTION_
virtual double perform(HyperGraph::Vertex *v, HyperGraph::Vertex *vParent, HyperGraph::Edge *e, double distance)
VertexStarMultimap & vertexStarMultiMap()
multimap vertex->star. Contains all the vertex assignments to all stars
VertexStarMultimap _vsMmap
HyperGraph::EdgeSet & freeEdges()
edges that are not yet assigned to any star
VertexStarMap & vertexStarMap()
map vertex->star. Contains the most recent vertex assignment
std::multimap< OptimizableGraph::Vertex *, Star * > VertexStarMultimap
SparseOptimizer * _optimizer
void init()
initializes the visit and clears the internal structures
std::set< Edge * > EdgeSet
create vertices and edges based on TAGs in, for example, a file
Star * getStar(HyperGraph::Vertex *v)
abstract Vertex, your types must derive from that one
HyperGraph::EdgeSet _freeEdges
BackBoneTreeAction(SparseOptimizer *optimizer, std::string vertexTag, int level, int step)
void addToMap(Star *s, HyperGraph::Vertex *v)
std::map< OptimizableGraph::Vertex *, Star * > VertexStarMap
bool fillStar(Star *s, HyperGraph::Edge *e_)
helper function that adds to a star an edge and all its vertices