Fixed DetachedEdgeTest for graphs that don't allow id assignment.