SIR: give error if graph is not simple (#582).