Test Digraph implementation for directed weighted graphs