Imagine in d3 there are two nodes, node1 and node2, depicted as circles positioned next to each other horizontally. These nodes are connected by a short horizontal line (represented as a path).
I am curious about how to: (1) determine the midpoint of that connecting line/path, (2) assign a new identifier or name to that midpoint for programmable manipulation, (3) create new vertical lines/paths extending from that midpoint to additional nodes such as node3, node4, and node5.