reset graph
added capacities (not working yet)