#include <distributed_graph.h>
template<typename T>
class nlohmann::adl_serializer< fpmas::api::graph::DistributedGraph< T > >
Defines Json serialization rules for generic fpmas::api::graph::DistributedGraph instances.
This notably enables the usage of fpmas::io::Breakpoint with fpmas::api::graph::DistributedGraph instances.
◆ to_json()
Serializes graph to the json j.
- Parameters
-
| j | json output |
| graph | graph to serialize |
◆ from_json()
Unserializes the json j into the specified graph.
Nodes and edges read from the Json file are imported into the graph, without altering the previous state of the input graph. So, depending on the desired behavior, calling graph.clear() might be required before loading data into it.
- Parameters
-
| j | json input |
| graph | output graph |
The documentation for this class was generated from the following file: