MCPcopy Create free account
hub / github.com/BirolLab/abyss / add_edge

Method add_edge

Graph/DirectedGraph.h:403–412  ·  view source on GitHub ↗

Adds edge (u,v) to this graph. */

Source from the content-addressed store, hash-verified

401
402 /** Adds edge (u,v) to this graph. */
403 std::pair<edge_descriptor, bool>
404 add_edge(vertex_descriptor u, vertex_descriptor v,
405 const edge_property_type& ep = edge_property_type())
406 {
407 vertices_size_type ui = get(vertex_index, *this, u);
408 assert(ui < num_vertices());
409 assert(get(vertex_index, *this, v) < num_vertices());
410 return make_pair(edge_descriptor(u, v),
411 m_vertices[ui].add_edge(v, ep));
412 }
413
414 /** Remove the edge (u,v) from this graph. */
415 void remove_edge(vertex_descriptor u, vertex_descriptor v)

Callers 1

add_edgeFunction · 0.45

Calls 2

getFunction · 0.70
num_verticesFunction · 0.70

Tested by

no test coverage detected