redefine Vertex & Edge as records, extract SSSP fns into separate test ns