added edge number for debugging purpose