Use Monte Carlo sampling for edges.
Read also classes and their interreferences.
Don't draw lines for edges.
Make event listeners work on tablet and desktop.