This is a simple framework to implement graph algorithms.