KrzyHonk / bpmn-python

Project for creating a Python library that allows to import/export BPMN diagram (as an XML file) and provides a simple visualization capabilities
GNU General Public License v3.0
66 stars 47 forks source link

Create own graph representation #20

Open KrzyHonk opened 7 years ago

KrzyHonk commented 7 years ago

Currently, the project is based on the external library that provides graph implementation. While it was useful at the begining (no need to create own solution), now it creates some problems due to the library specifics (for example - no directed edges, adding edge from node A to node B doesn't mean it will be kept in this form). There is a need to create our own graph implementation - for now, working in a way similar to current solution (keeping nodes and edges as dictionaries), in future - replace it with real objects.

kamills1248 commented 5 years ago

Just a note on edge directions: current implementation seems to preserve order in which nodes (events, tasks, gateways) were added to diagram. For example adding task A, task B and edge from B to A will result in diagram with both tasks and edge from A to B.