fusion flow updated to take cliques into account