Optimized Digraph with an addtional display UI for test the digraph