MCPcopy
hub / github.com/mrpandey/d3graphTheory / clearGraph

Function clearGraph

ch/graphic-sequence/app.js:68–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67//empties the graph
68function clearGraph() {
69 nodes.splice(0);
70 links.splice(0);
71 lastNodeId = 0;
72 restart();
73 showGraphLatex();
74}
75
76//set initial positions for quick convergence
77function positionNodes() {

Callers

nothing calls this directly

Calls 2

restartFunction · 0.70
showGraphLatexFunction · 0.70

Tested by

no test coverage detected