edge weighted digraph