Topological Algorithms For Geographic And Geometric Graphs