fix subtle casting bug, use np.intp type
fix subtle casting bug, use np.intp type

On platforms where dtype(int) is np.int32 and self._pairs has a float64
dtype, assigning the dtype directly was causing the shape to increase
from (0, 2) to (0, 4).

all-umass/graphs,all-umass/graphs