skeleton analyser - faster __edge_curve (3x total speedup)