Wrote some tests for the graph package and added functions and statements needed.