#include <hyper_graph.h>
Public Member Functions | |
Edge (int id=-1) | |
creates and empty edge with no vertices | |
int | id () const |
virtual void | resize (size_t size) |
void | setId (int id) |
const VertexVector & | vertices () const |
VertexVector & | vertices () |
virtual | ~Edge () |
Protected Attributes | |
int | _id |
VertexVector | _vertices |
Abstract Edge class. Your nice edge classes should inherit from that one. An hyper-edge has pointers to the vertices it connects and stores them in a vector.
Definition at line 84 of file hyper_graph.h.
g2o::HyperGraph::Edge::Edge | ( | int | id = -1 | ) | [explicit] |
creates and empty edge with no vertices
Definition at line 32 of file hyper_graph.cpp.
g2o::HyperGraph::Edge::~Edge | ( | ) | [virtual] |
Definition at line 36 of file hyper_graph.cpp.
int g2o::HyperGraph::Edge::id | ( | ) | const [inline] |
Definition at line 103 of file hyper_graph.h.
void g2o::HyperGraph::Edge::resize | ( | size_t | size | ) | [virtual] |
resizes the number of vertices connected by this edge
Reimplemented in g2o::BaseMultiEdge< D, E >, g2o::BaseMultiEdge< 3, SE2 >, g2o::BaseMultiEdge< 2, Vector2d >, and g2o::BaseMultiEdge< 2, Eigen::Vector2d >.
Definition at line 40 of file hyper_graph.cpp.
void g2o::HyperGraph::Edge::setId | ( | int | id | ) |
Definition at line 45 of file hyper_graph.cpp.
const VertexVector& g2o::HyperGraph::Edge::vertices | ( | ) | const [inline] |
returns the vector of pointers to the vertices connected by the hyper-edge.
Definition at line 97 of file hyper_graph.h.
VertexVector& g2o::HyperGraph::Edge::vertices | ( | ) | [inline] |
returns the vector of pointers to the vertices connected by the hyper-edge.
Definition at line 101 of file hyper_graph.h.
int g2o::HyperGraph::Edge::_id [protected] |
Definition at line 107 of file hyper_graph.h.
VertexVector g2o::HyperGraph::Edge::_vertices [protected] |
Definition at line 106 of file hyper_graph.h.