adding param vertex and edge
some explantations and doc
more precise tests on graph
cleaning unused stuff for weighted graph