Structuring the module

Fixed test format
Added test to graph.
Added dir parameterization
Added vertex_cover

and other small functions