in reply to Creating Minimal Subgroups in a List of Characters
This is very difficult to read, I'd suggest you strip the part that is not relevant (e.g., database query, etc.) and add those that is not complete (e.g., the function CvrtStatuteToDot), and make a script that people can run, which uses your example data as input, and produces your example output.