Added get_pred_map as a graphopt tool.
Added merge for single path nodes.