Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make adjacency_matrix implement BidirectionalGraph concept #403

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Wavetrace
Copy link

@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.
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
1 participant