eisman / neo4jd3

Neo4j graph visualization using D3.js
https://eisman.github.io/neo4jd3/
MIT License
1.37k stars 422 forks source link

Close nodes / reset graph #27

Open nighto opened 6 years ago

nighto commented 6 years ago

I'm having the need to close all nodes / reset graph to empty state, i.e. attaching new nodes to an empty arraying instead of pushing them to existent nodes array.

Just created a fork, will be contributing with a PR soon.

nighto commented 6 years ago

I'm using neo4jd3 with a Neo4J server with a search function, so it starts empty and one or more nodes are added to the graph with the search result. User can expand nodes relations. However to redo the search, neo4jd3 for standard appends new nodes to the graph without removing existent nodes. So I needed a function to remove nodes on the graph, so only the search results are shown, not the previous ones.

jesusalber1 commented 6 years ago

Check #24

liufan1993 commented 5 years ago

检查#24

I used this directly to report an error.

liufan1993 commented 5 years ago

我需要将所有节点/重置图关闭到空状态,即将新节点附加到空排列而不是将它们推送到现有节点数组。

刚刚创建了一个分支,很快将为PR做出贡献。

Did you finally solve it? How to solve it?