Guidance sought on the best approach for developing an MVC node graph app.
I am planning to creat an app on the MVC pattern where the model is a DAG (directed a-cyclic graph) with A single root node connected through the graph to a set of leaf nodes. Each node will derive from a node class. The viewer part will show the nodes and their connections as a line an box picture. The boxes will contain text from a text attribut of the underlying node class. The controller will allow nodes to be created, updated and deleted subject to certain Business rules.
I am a newbie to the python world, let along Pythonista. I would welcome any observations that will accelerate my progress is developing the app. For example has anyone done it, is there a library I should use, what graphics controls should I consider?
Thanks in advance.
I used Pythonista UI views as nodes, with a custom
drawmethod for the lines between nodes. The display code is all in bsp.py. For force-directed layout, I tried networkx and some other libraries, but found them overweight and underperforming, so wrote the algorithm myself based on some Internet sources (
force_layoutmethod in graph.py).
Underlying storage here is basically any key-value store. I used an earlier project, ReminderStore, that uses the iOS Reminders as a sort of a distributed database.
I will give it a try