test mapVertices
remove unecessary type from mapVertices
fixed subGraph() and added test
add tests in readme