Initial length check added to check_edge2path.  Works with zero lengths;
not tested with anything else yet.