frewsxcv/graphosaurus

Possibility of bulk data insertion (or wholesale data replacement?)

mwozniczak opened this issue · 3 comments

Possibility of bulk data insertion (or wholesale data replacement?)

Whenever nodes or edges get added to the Graph, it triggers a redraw automatically:

So if you change all your data after you've already rendered, it's going to result in a lot of draw calls presumably. Yes, this is not ideal if you want to either add or replace the data after you've rendered.

I don't have much time to dedicate to this project nowadays, but if you're looking to extend the functionality, one can just change the addNode and addEdge to take a boolean parameter indicate if the graph should be redrawn.

Let me know if you need any help!

I think this issue is more-or-less closeable...?

I mean, right now the nodes/edges are purged wholesale, but deleting single ones was not really the point of this particular issue.

Sounds good