Analysis and Geometry on Graphs and Manifolds