Estimating Vector Fields on Manifolds and the Embedding of Directed Graphs