I have a question regarding d3 network diagram. Say I have a simple, one like here in my jsFiddle enter link description here , diagram.And Id like to have a function, for example that deletes the middle circle and connects the first and the third one. Could someone please assist me on this ?
[['L1', 'L2'], ['L2', 'L3']]
Probably its not gonna be 'hard delete', but hiding or not showing ? Because also Id like to know a way how could i bring that middle, deleted circle back and the original diagram back.
Ideally i would love someone to assist me with some snippets of two functions which one would delete the middle circle and the other one (say by pressing a button) would bring it back.
Also we could make an assumption that each circle has an id and the connections between them would have Ids as well, if that makes stuff easier of course.