moving repair code into TitanGraphTools