R: put local_scan into its own file
R: local_scan adds vertex names to result