A series of implementation of the basic graph problems