Add serialization support for `adjacency_matrix` and `compressed_sparse_row`

Open
#473 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
data

Research direction

Start by reading the existing adjacency_list serialization support in adj_list_serialize.hpp, then locate the adjacency_matrix and compressed_sparse_row implementations. Determine how their data is represented and add serialization support for both structures, verifying that each can be serialized and restored consistently.

Written by the indexing model from the issue text.

Description

data structure

Problem

As I noticed while updating the docs, currently only the adjacency list class has support for serialization: adjacency_list got serialization in adj_list_serialize.hpp

I expect the CSR to be the most straightforward to implement since it's "just" two arrays.

I have not found any complain online about this gap as being important or critical. Worth cataloging and looking into, though.

Dominant language
C++
Stars
395
Forks
239
Avg merge
18h 50m
Merged PRs (30d)
20

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/graph

All issues in boostorg/graph

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.