$extrastylesheet
#include <mln/util/edge.hh>
Public Member Functions | |
edge () | |
edge (const G &g) | |
edge (const G &g, id_value_t id) | |
edge (const G &g, const edge_id_t &id) | |
bool | is_valid () const |
void | invalidate () |
edge_id_t | id () const |
void | update_id (const edge_id_t &id) |
operator edge_id_t () const | |
const G & | graph () const |
void | change_graph (const G &g) |
vertex_id_t | v_other (const vertex_id_t &id_v) const |
vertex_id_t | v1 () const |
vertex_id_t | v2 () const |
size_t | nmax_nbh_edges () const |
edge_id_t | ith_nbh_edge (unsigned i) const |
Public Types | |
typedef Edge< void > | category |
typedef G | graph_t |
typedef edge_id_t | id_t |
typedef edge_id_t::value_t | id_value_t |
Edge of a graph G
.
mln::util::edge< G >::edge | ( | ) |
Constructors.
|
explicit |
mln::util::edge< G >::edge | ( | const G & | g, |
id_value_t | id | ||
) |
mln::util::edge< G >::edge | ( | const G & | g, |
const edge_id_t & | id | ||
) |
void mln::util::edge< G >::change_graph | ( | const G & | g | ) |
Set g_ with g
;.
const G& mln::util::edge< G >::graph | ( | ) | const |
Return a reference to the graph holding this edge.
edge_id_t mln::util::edge< G >::id | ( | ) | const |
Return the edge id.
void mln::util::edge< G >::invalidate | ( | ) |
Invalidate that vertex.
bool mln::util::edge< G >::is_valid | ( | ) | const |
Misc.
Return whether is points to a known edge.
edge_id_t mln::util::edge< G >::ith_nbh_edge | ( | unsigned | i | ) | const |
Return the i
th adjacent edge.
size_t mln::util::edge< G >::nmax_nbh_edges | ( | ) | const |
Return the number max of adjacent edges.
mln::util::edge< G >::operator edge_id_t | ( | ) | const |
Conversion to the edge id.
void mln::util::edge< G >::update_id | ( | const edge_id_t & | id | ) |
Set id_ with id
;.
vertex_id_t mln::util::edge< G >::v1 | ( | ) | const |
Edge oriented.
Return the lowest vertex id adjacent to this edge.
vertex_id_t mln::util::edge< G >::v2 | ( | ) | const |
Return the highest vertex id adjacent to this edge.
vertex_id_t mln::util::edge< G >::v_other | ( | const vertex_id_t & | id_v | ) | const |
Vertex and edges oriented.
Return the vertex id of this edge which is different from id_v
.
typedef Edge<void> mln::util::edge< G >::category |
typedef G mln::util::edge< G >::graph_t |
typedef edge_id_t mln::util::edge< G >::id_t |
typedef edge_id_t::value_t mln::util::edge< G >::id_value_t |