Skip to content

Conversation

@edeno
Copy link
Contributor

@edeno edeno commented Sep 24, 2025

Summary

  • Add failing tests that define the correct edge_map semantics
  • Tests demonstrate that edge_map should work on edge labels (edge_id), not segment indices
  • Validates that invalid target edge IDs should raise ValueError
  • Shows edge merging functionality (multiple edges mapping to same label)

Test plan

  • Tests currently fail as expected, demonstrating the bug
  • Next PR will implement the fix to make these tests pass
  • Validate edge_map operates on edge labels, not indices
  • Ensure proper validation of mapping keys and targets

🤖 Generated with Claude Code

Add test_edge_map.py with tests that demonstrate the desired behavior:
- edge_map should operate on edge labels (edge_id), not indices
- edge_map should validate that target values exist in the graph
- edge_map should allow merging multiple edges to a single label

These tests currently fail due to the current implementation mixing
segment indices with edge labels.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@edeno edeno linked an issue Sep 24, 2025 that may be closed by this pull request
@edeno edeno removed a link to an issue Sep 24, 2025
@edeno
Copy link
Contributor Author

edeno commented Sep 24, 2025

Superseded by PR #7 which includes these tests plus the implementation

@edeno edeno closed this Sep 24, 2025
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.

2 participants