Community detection as a tool for complex pipe network clustering