Determine whether a triangle can be built from a given set of edges