Add graph utility classes