Part of the code returned to the non-modularised version in order to solve the visualization bug (svg.selectAll(".link") svg.selectAll(".node") and definition of code)