|
ADS
Algorithms and Data Structures
|
a graph of NetworKit kept in step with a graph of ADS, as an observer of its ObservedGraph, which tells each change to the dynamic algorithms of NetworKit attached to it More...
#include <ADS/interop/networkit/NetworKit.h>
Public types | |
| using | Weight = typename G::Weight |
| the type of the weights | |
| using | Event = GraphEvent< Weight > |
| the events of ADS | |
Public member functions | |
| NetworKitMirror (const G &g) | |
| the mirror of \( g \) as it is now, by toNetworKit() | |
| NetworKitMirror (const NetworKitMirror &)=delete | |
| NetworKitMirror & | operator= (const NetworKitMirror &)=delete |
| const NetworKit::Graph & | graph (void) const |
| the graph of NetworKit, on which the algorithms are built | |
| int | attach (NetworKit::DynAlgorithm &a, unsigned kinds=GraphEvents::EDGES) |
| the algorithm \( a \) attached, told of the events of the kinds kinds [see GraphEvents]; its number | |
| void | detach (int id) |
| the algorithm number \( \mathit{id} \) detached | |
| std::size_t | told (void) const |
| the number of the events told to the algorithms, one per algorithm | |
| void | on (const NodeInserted &e) |
| the node inserted | |
| void | on (const NodeDeleted &e) noexcept |
| the node deleted, after its edges | |
| void | on (const EdgeInserted< Weight > &e) |
| the edge inserted | |
| void | on (const EdgeDeleted< Weight > &e) noexcept |
| the edge deleted | |
| void | on (const WeightChanged< Weight > &e) |
| the weight of an edge changed | |
| void | on (std::span< const Event > s) |
| the events of a batch, coalesced: the graph changed by all of them, then one updateBatch() for each algorithm, with those of its kinds | |
a graph of NetworKit kept in step with a graph of ADS, as an observer of its ObservedGraph, which tells each change to the dynamic algorithms of NetworKit attached to it
| using ADS::networkit::NetworKitMirror< G >::Event = GraphEvent< Weight > |
the events of ADS
| using ADS::networkit::NetworKitMirror< G >::Weight = typename G::Weight |
the type of the weights
|
inlineexplicit |
the mirror of \( g \) as it is now, by toNetworKit()
|
delete |
|
inline |
the algorithm \( a \) attached, told of the events of the kinds kinds [see GraphEvents]; its number
|
inline |
the algorithm number \( \mathit{id} \) detached
|
inlinenodiscard |
the graph of NetworKit, on which the algorithms are built
|
inlinenoexcept |
the edge deleted
|
inline |
the edge inserted
|
inlinenoexcept |
the node deleted, after its edges
|
inline |
the node inserted
|
inline |
the weight of an edge changed
|
inline |
the events of a batch, coalesced: the graph changed by all of them, then one updateBatch() for each algorithm, with those of its kinds
|
delete |
|
inlinenodiscard |
the number of the events told to the algorithms, one per algorithm