semi-metric triangles implementations

Two implementations for finding and removing semi-metric edges in triangles of undirected weighted graphs.