A graph-kernel method for re-identification