nodify icon indicating copy to clipboard operation
nodify copied to clipboard

[Question] Is functionality going to be added for saving a node graph?

Open Pat02 opened this issue 2 years ago • 1 comments

Saving / Loading node graphs would be hugely beneficial, will there be any support out of the box, or will it be up to a user to implement their own save system?

Pat02 avatar Aug 04 '22 14:08 Pat02

Hi, this feature doesn't make sense for Nodify, the controls library, but it would make sense for the consuming app which defines the viewmodels. That means you will have to implement your own saving system which is specific to your models.

Note that this feature may be supported out of the box for the new library in this PR: #36.

miroiu avatar Aug 04 '22 19:08 miroiu

I totally agree with @miroiu, however I would like to add a thought on this issue: The kind or strategy of graph persistence may vary widely, depending on the use case. We are trying to use it as a simplified UI on a Neo4j database, where there is no good way to preserve the positions of the nodes inside the database (long story). In another case you may want to edit the graph like a document, stored locally, for example. This file format could be anything like XML, JSON or even some binary stream. IMHO it would be better to keep Nodify as a visualization and modification tool, separate from your actual data structure and have your data structure handle how to serialize and deserialize the data.

Chris-Tophski avatar Sep 29 '23 10:09 Chris-Tophski

Good point. I will close this issue because it's not the responsibility of the UI to save data. Thanks for your input!

miroiu avatar Oct 04 '23 13:10 miroiu