Added find_non_edge for Fitted.m