Representing graphs