Fix bugs, add methods to Directed Weighted Graph class