Digraph API and unit test
ongoing....