Driver Code
public static void Main ( String [ ] args ) { for ( int i = 0 ; i < V ; i ++ ) edges [ i ] = new List < Edge > ( ) ; addedge ( 0 , 1 , 1 ) ; addedge ( 0 , 2 , 10 ) ; addedge ( 1 , 2 , 3 ) ; addedge ( 2 , 3 , 2 ) ; addedge ( 3 , 1 , 0 ) ; addedge ( 3 , 0 , 8 ) ; Console . Write ( " { 0 : F5 } " , minAvgWeight ( ) ) ; } }