As I wrote before, it’s a custom graph (with custom nodes). I’m not exactly sure what makes GetNearest so slow, though. It’s actually not the amount. Calling it once already causes a performance spike. Probably it calculates the distance to every node in the graph.