Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
load_digraph_example.cc File Reference

Educational examples for saving/loading directed graphs from files. More...

#include <iostream>
#include <fstream>
#include <sstream>
#include <load_digraph.H>
Include dependency graph for load_digraph_example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Educational examples for saving/loading directed graphs from files.

WHY SERIALIZE GRAPHS?

  • Persistence: Save graph state to disk
  • Data exchange: Share graphs between programs
  • Checkpointing: Save progress in long computations
  • Version control: Track graph evolution over time

FILE FORMAT:

Nodes: pipe-separated fields (id|name|data) Arcs: space-separated (src_id dst_id [weight])

COMPILE & RUN:

g++ -std=c++20 -I.. -o load_digraph_example load_digraph_example.cc ./load_digraph_example

Definition in file load_digraph_example.cc.

Function Documentation

◆ main()