support for directed graphs
Merge branch 'dirgraph'