OmenApps / django-postgresql-dag

Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
Apache License 2.0
41 stars 6 forks source link

Add option to prevent multiple shared edges between two nodes #4

Closed JackAtOmenApps closed 3 years ago

JackAtOmenApps commented 3 years ago

In some graphs, it may be undesirable to have more than one edge between the same two nodes.

Add an option to disallow this behavior, with a custom exception when a model the same parent or child is added more than once to a node.

JackAtOmenApps commented 3 years ago

Resolved with #7