Tiny optimizing lib for Dijkstra Algorithm which generates Edges dynamically