What are algorithms for computing contours from given edges?
This problem is not surprisingly called Concave Hull
You might be also interested in alpha shapes
CONCAVE HULL: A K-NEAREST NEIGHBOURS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS by Adriano Moreira and Maribel Yasmina Santos