Here we want different clustering algorithms that work on rel[&T from, &T to] and rel[from &T,&U edge,&T to]