completed basic simple graph functionality