Implement graph