$extrastylesheet
#include <mln/util/vertex.hh>
Public Member Functions | |
void | change_graph (const G &g) |
edge< G > | edge_with (const vertex< G > &v_id) const |
const G & | graph () const |
const vertex_id_t & | id () const |
void | invalidate () |
bool | is_valid () const |
edge_id_t | ith_nbh_edge (unsigned i) const |
vertex_id_t | ith_nbh_vertex (unsigned i) const |
unsigned | nmax_nbh_edges () const |
unsigned | nmax_nbh_vertices () const |
operator vertex_id_t () const | |
vertex_id_t | other (const edge_id_t &id_e) const |
void | update_id (const vertex_id_t &id) |
vertex () | |
vertex (const G &g) | |
vertex (const G &g, const id_value_t &id) | |
vertex (const G &g, const vertex_id_t &id) |
Protected Attributes | |
G | g_ |
vertex_id_t | id_ |
Public Types | |
typedef Site< void > | category |
typedef Vertex< void > | Category |
typedef vertex< G > | exact_t |
typedef G | graph_t |
typedef vertex_id_t | id_t |
typedef vertex_id_t::value_t | id_value_t |
Vertex of a graph G
.
mln::util::vertex< G >::vertex | ( | ) |
Constructors.
|
explicit |
mln::util::vertex< G >::vertex | ( | const G & | g, |
const id_value_t & | id | ||
) |
mln::util::vertex< G >::vertex | ( | const G & | g, |
const vertex_id_t & | id | ||
) |
void mln::util::vertex< G >::change_graph | ( | const G & | g | ) |
Change the parent graph of that vertex.
edge<G> mln::util::vertex< G >::edge_with | ( | const vertex< G > & | v_id | ) | const |
Returns true if this vertex has an edge with the given vertex.
const G& mln::util::vertex< G >::graph | ( | ) | const |
Returns the graph pointer this vertex belongs to.
const vertex_id_t& mln::util::vertex< G >::id | ( | ) | const |
Returns the vertex id.
void mln::util::vertex< G >::invalidate | ( | ) |
Invalidate that vertex.
bool mln::util::vertex< G >::is_valid | ( | ) | const |
Check whether the vertex is still part of the graph.
edge_id_t mln::util::vertex< G >::ith_nbh_edge | ( | unsigned | i | ) | const |
Returns the ith edge starting from this vertex.
vertex_id_t mln::util::vertex< G >::ith_nbh_vertex | ( | unsigned | i | ) | const |
Returns the ith vertex adjacent to this vertex.
unsigned mln::util::vertex< G >::nmax_nbh_edges | ( | ) | const |
Returns the number max of edges starting from this vertex.
If g_ is a sub graph of another graph, nmax will be retrived from the initial graph.
unsigned mln::util::vertex< G >::nmax_nbh_vertices | ( | ) | const |
Returns the number max of vertices adjacent to this vertex.
mln::util::vertex< G >::operator vertex_id_t | ( | ) | const |
Conversion to the vertex id.
FIXME: May cause ambiguities... :(
vertex_id_t mln::util::vertex< G >::other | ( | const edge_id_t & | id_e | ) | const |
Returns the other vertex located on edge id_e
.
void mln::util::vertex< G >::update_id | ( | const vertex_id_t & | id | ) |
Update the vertex id.
|
protected |
|
protected |
typedef Vertex<void> mln::util::vertex< G >::Category |
|
inherited |
typedef G mln::util::vertex< G >::graph_t |
typedef vertex_id_t mln::util::vertex< G >::id_t |
typedef vertex_id_t::value_t mln::util::vertex< G >::id_value_t |