Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Each line has two or more line-ends (except for loops), and zero or more junctions. The lines can be broken at junctions into segments. We can forget about segments that don't have a line-end. "-connected-components" tells us the size of each segment, so we can remove all segments that are smaller than a certain size.
When we have found segments, I can't see how to easily identify which segments have a common junction.