adding some methods to RIGraph which are needed by CMView: discretizeByWeightCutoff(double), discretizeByNumContacts(int), getFullLength()