some graph class cleanup