Go to the documentation of this file.
57 template <
class vvGraph>
class Insert {
67 unsigned int check = 0;
75 Information::err <<
"Warning: Attempt to insert a vertex between vertices that have no relation." << endl;
79 Information::err <<
"Warning: Attempt to insert a vertex between vertices that have an assymetric relation."
100 template <
typename VertexContent,
typename EdgeContent>
115 template <
class Graph>
116 typename Graph::edge_t
insertAfter(
const typename Graph::vertex_t& v,
const typename Graph::vertex_t& ref,
117 const typename Graph::vertex_t& nv, Graph& S)
120 return S.spliceAfter(v, ref, nv);
121 return S.insertEdge(v, nv);
128 template <
class Graph>
129 typename Graph::edge_t
insertBefore(
const typename Graph::vertex_t& v,
const typename Graph::vertex_t& ref,
130 const typename Graph::vertex_t& nv, Graph& S)
133 return S.spliceBefore(v, ref, nv);
134 return S.insertEdge(v, nv);
Graph::edge_t insertAfter(const typename Graph::vertex_t &v, const typename Graph::vertex_t &ref, const typename Graph::vertex_t &nv, Graph &S)
Splice nv after ref in v if ref is not null.
bool insert(const vertex_t &v, bool checkUnique=true)
Insert a new vertex in the graph.
const VVGraph< VertexContent, EdgeContent >::vertex_t & insert(const typename VVGraph< VertexContent, EdgeContent >::vertex_t &a, const typename VVGraph< VertexContent, EdgeContent >::vertex_t &b, VVGraph< VertexContent, EdgeContent > &S)
bool isNull() const
Test if a vertex is a null vertex.
Distributed matrix library.
edge_t replace(const vertex_t &v, const vertex_t &neighbor, const vertex_t &new_neighbor)
Replace a vertex by another in a neighborhood.
edge_t insertEdge(const vertex_t &src, const vertex_t &tgt)
Insert a new edge in the graph, without ordering.
vertex operator()(const vertex &a, const vertex &b, vvGraph &S) const
edge_t edge(const vertex_t &src, const vertex_t &tgt)
Returns the edge from src to tgt.
Insert a new vertex on an edge.
Graph::edge_t insertBefore(const typename Graph::vertex_t &v, const typename Graph::vertex_t &ref, const typename Graph::vertex_t &nv, Graph &S)
Splice nv before ref in v if ref is not null.
Vertex< VertexContent > vertex_t
Smart pointer on a vertex.