cognee/cognee/tests/unit/interfaces/graph
lxobr 6dbd8e85a1
feat: dynamic multiple edges in datapoints (#1212)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->
- Improved list handling, removed `.index` logic from
`get_graph_from_model`, transitioned to fully datapoint-oriented
processing
- Streamlined datapoint iteration by introducing `_datapoints_generator`
with nested loops
- Generalized field processing to handle mixed lists: `[DataPoint,
(Edge, DataPoint), (Edge, [DataPoint])]`, allowing dynamic multiple
edges generation
- Small improvements and refactorings
- Added tests to `test_get_graph_from_model_flexible_edges()` covering
weighted edges and dynamic multiple edges
- Created `dynamic_multiple_edges_example.py` demonstrating dynamic
multiple edges

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
2025-08-07 14:50:45 +02:00
..
get_graph_from_huge_model_test.py fix: remove flaky assert 2025-07-09 01:00:31 +02:00
get_graph_from_model_circular_test.py fix: lint error and make test deterministic 2025-07-09 00:50:52 +02:00
get_graph_from_model_unit_test.py feat: dynamic multiple edges in datapoints (#1212) 2025-08-07 14:50:45 +02:00
test_weighted_edges.py feat: Weighted edges (#1068) 2025-07-14 21:26:25 +02:00