modify the cat metric graph builder