Major improvements in graphs

Graph functions almost done: Incidence matrix, adjacency matrix and DFS
for connected graph test. Multigraph is not allowed.