Driver code
public static void Main ( String [ ] args ) { int [ , ] edges = { { 0 , 1 } , { 2 , 1 } , { 3 , 2 } , { 3 , 4 } , { 5 , 4 } , { 5 , 6 } , { 7 , 6 } } ; int e = edges . GetLength ( 0 ) ; printMinEdgeReverseForRootNode ( edges , e ) ; } }