added clusering and edge interpretation (unfinished)