Collapsing also returns distances
Merge pull request #378 from emmanuel-keller/master

Collapsing also returns distances