Skip to content

Conversation

@Wavetrace
Copy link
Contributor

@Wavetrace Wavetrace commented Dec 12, 2024

Adjacency matrix is by nature bidirectional and one can see that the concept was mostly implemented before. That implementation missed the degree function(s). These functions are implemented in this commit and the traversal_category is updated to meet the concept requirements.

Tests are also added, though they are a bit shallow in the sense that they seem to omit intensive algorithms.

This PR is a consequence of work on #397 -- that one contains a test commented out, that ends up running neighbor_bfs on an adjacency matrix.

Fixes #404

Adjacency matrix is by nature bidirectional and one can see that the
concept was mostly implemented before. That implementation missed
the degree function(s). These functions are implemented in this commit
and the traversal_category is updated to meet the concept requirements.

Tests are also added, though they are a bit shallow in the sense that
they seem to omit intensive algorithms.
@jeremy-murphy
Copy link
Contributor

I thought it would be expedient to just fix the comments myself since the changes were trivial.

@jeremy-murphy jeremy-murphy self-requested a review February 28, 2025 06:01
Copy link
Contributor

@jeremy-murphy jeremy-murphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a pragmatic missing piece of the puzzle!

@jeremy-murphy jeremy-murphy merged commit 9237081 into boostorg:develop Feb 28, 2025
22 checks passed
@jonasliljenfeldt
Copy link

Nice one @Wavetrace!

@Wavetrace
Copy link
Contributor Author

Wavetrace commented Mar 4, 2025

Thanks, Jonas! Thanks a lot, Jeremy, for fixing the comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

adjacency_matrix should implement BidirectionalGraphConcept

3 participants