graph representation classes