Commit 2c474ad
fix(rolegraph-py): address code review findings
- Simplify __repr__ to avoid calling get_graph_stats() on every repr
(was O(n) for large graphs, now just shows role + document count)
- Fix LogicalOperator type stub to use LogicalOperator type instead of int
- Strengthen test_is_all_terms_connected_by_path to assert expected True
for co-occurring terms instead of only checking return type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f9ad14d commit 2c474ad
3 files changed
Lines changed: 12 additions & 10 deletions
File tree
- crates/terraphim_rolegraph_py
- python
- terraphim_rolegraph
- tests
- src
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | | - | |
129 | 134 | | |
130 | 135 | | |
131 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
480 | | - | |
481 | 480 | | |
482 | | - | |
| 481 | + | |
483 | 482 | | |
484 | | - | |
485 | | - | |
486 | | - | |
| 483 | + | |
487 | 484 | | |
488 | 485 | | |
489 | 486 | | |
| |||
0 commit comments