Integrated directed graphs with graphs and fixed Prim's algorithm for directed graphs