match_pts_to_graph function

Match spatial points to the edges of a spatial graph.