A graph-matching approach to indoor localization