Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.06 KB

Atomic_edge_list.md

File metadata and controls

27 lines (19 loc) · 1.06 KB

Atomic_edge_list

Declared in <graph/Atomic_edge_list.hpp>:

class Atomic_edge_list;

Satisfies the Graph concept using a classical edge list data structure adapted for parallel domains.

All const methods and those prefixed with atomic_* guarantee atomicity.

Member functions

In addition to the members required by the Graph concept, Atomic_edge_list provides functions to facilitate mutation.

Vertices
insert_vert() Vert constructs a new vertex
reserve_verts(Order n) ensures that vertices can be inserted atomically up to order n
atomic_insert_vert() Vert atomically constructs a new vertex
Edges
insert_edge(Vert s, Vert t) Edge constructs a new edge with tail s and head t
reserve_edges(Size n) ensures that edges can be inserted atomically up to size n
atomic_insert_edge(Vert s, Vert t) Edge atomically constructs a new edge with tail s and head t