Conversation
…mdspan) include/graph/container/adjacency_matrix.hpp: - adjacency_matrix<EV, VId, Directed>: portable C++20 dense matrix that models index_adjacency_list via the inner-value pattern (matrix is a random-access range of lazily-filtered row views; edge elements live in an owned dense plane so target_id/edge_value resolve with stable references) - md_adjacency_matrix<EV, VId, Directed>: C++23 variant (guarded by __cpp_lib_mdspan) exposing the presence plane as a 2-D std::mdspan with natural m(u,v) access - O(1) has_edge/weight, O(n) per-vertex out-edge iteration, O(n^2) space tests/container/adjacency_matrix/test_adjacency_matrix.cpp: - static_asserts for adjacency_list / index_adjacency_list (weighted+unweighted) - directed/undirected/weighted behaviour, vertices(), out_edges(), target_id, edge_value - registered in tests/container/CMakeLists.txt
Add a dynamic_graph-style constructor taking the matrix order plus a range of edges and a projection to copyable_edge_t<VId,EV>, used to initialize the edges. Add user-guide documentation for adjacency_matrix and md_adjacency_matrix, and mark the adjacency_matrix gap addressed in the BGL migration scorecard.
# Conflicts: # agents/bgl_migration_strategy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.