partial rewrite of getOperandPartEdge; should fix compiling