Made apsp_edge a common data type (used twice)
Fixed references to types