fix return value in randomize_graph_partial_und
chapter 2, first draft ready