|
| | AdjacencyList (const std::int32_t n) |
| |
template<typename U , typename V >
requires std::is_convertible_v<std::remove_cvref_t<U>, std::vector<T>> and std::is_convertible_v<std::remove_cvref_t<V>, std::vector<std::int32_t>> |
| | AdjacencyList (U &&data, V &&offsets) |
| |
| template<typename X > |
| | AdjacencyList (const std::vector< X > &data) |
| |
|
| AdjacencyList (const AdjacencyList &list)=default |
| | Copy constructor.
|
| |
|
| AdjacencyList (AdjacencyList &&list)=default |
| | Move constructor.
|
| |
|
| ~AdjacencyList ()=default |
| | Destructor.
|
| |
|
AdjacencyList & | operator= (const AdjacencyList &list)=default |
| | Assignment operator.
|
| |
|
AdjacencyList & | operator= (AdjacencyList &&list)=default |
| | Move assignment operator.
|
| |
| bool | operator== (const AdjacencyList &list) const |
| |
| std::int32_t | num_nodes () const |
| |
| int | num_links (std::size_t node) const |
| |
| std::span< T > | links (std::size_t node) |
| |
| std::span< const T > | links (std::size_t node) const |
| |
|
const std::vector< T > & | array () const |
| | Return contiguous array of links for all nodes (const version)
|
| |
|
std::vector< T > & | array () |
| | Return contiguous array of links for all nodes.
|
| |
|
const std::vector< std::int32_t > & | offsets () const |
| | Offset for each node in array() (const version)
|
| |
|
std::vector< std::int32_t > & | offsets () |
| | Offset for each node in array()
|
| |
| std::string | str () const |
| |
template<typename T>
class dolfinx::graph::AdjacencyList< T >
This class provides a static adjacency list data structure. It is commonly used to store directed graphs. For each node in the contiguous list of nodes [0, 1, 2, ..., n) it stores the connected nodes. The representation is strictly local, i.e. it is not parallel aware.