Example of OpenLayers using Snap/Split and GhostNodes to keep the junctions of lines as a network.

View on GitHub
snapping, splitting, GhostNodes, network

Shows usage of snapping, splitting and GhostNodes to keep the junctions of lines as a network.

Try:

View the ghost-nodes.js source to see how this is done.