* Bug correction on a calculus error in the undirected matrix

* the vertexIsSource and vertexIsSink are no longer inline since we now have to check if the graph is undirected

* these functions now throw logic_error if the graph is undirected