Move find maxc to read_edge