fix small error in edge-graph arc calculation.