Adding debugging.  Removed is_edge, as it is superfluous.