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

Function removeEdge

ch/graphic-sequence/app.js:136–143  ·  view source on GitHub ↗
(d, i)

Source from the content-addressed store, hash-verified

134}
135
136function removeEdge(d, i) {
137 d.source.degree--;
138 d.target.degree--;
139 links.splice(links.indexOf(d), 1);
140 d3.event.preventDefault();
141 restart();
142 showGraphLatex();
143}
144
145function beginDragLine(d) {
146 //event must propagate till g.vertex so that force.drag could work

Callers

nothing calls this directly

Calls 2

restartFunction · 0.70
showGraphLatexFunction · 0.70

Tested by

no test coverage detected