cognee/examples
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
..
data fix: 0.1.41 Release (#894) 2025-05-31 02:19:29 +02:00
database_examples Merge main vol 4 (#1200) 2025-08-05 12:48:24 +02:00
low_level Fix low level pipeline (#1203) 2025-08-05 17:01:48 +02:00
python feat: dynamic multiple edges in datapoints (#1212) 2025-08-07 14:50:45 +02:00
relational_db_with_dlt feat: add relational db migration and dlt example (#843) 2025-06-03 06:35:26 +02:00