Best Way To Select Edges: Programatically

Im on the journey and the last code I posted attracted the comment that my curve selection was not ideal.
I copied the idea of using midpoint etc from a youtube video but would like to do it the best way possible.

Here is how I have been doing it…any help to do it the most elegant way possible would be greatly welcomed…“Every day is a school day”


Select Edges.gh (174.4 KB)

Search pOd on this forum.

Thanks Quan
I should have qualified that as ‘programatically’ select edges as part of a procedural process
I will edit my post title

Nice to know that one anyway :slight_smile: