Driver Code
public static void Main ( String [ ] args ) { int V = 6 ; int [ ] cost = { 12 , 25 , 8 , 11 , 10 , 7 } ; for ( int i = 0 ; i < adj . Length ; i ++ ) adj [ i ] = new List < int > ( ) ; addEdge ( 1 , 2 ) ; addEdge ( 1 , 3 ) ; addEdge ( 3 , 2 ) ; addEdge ( 2 , 5 ) ; addEdge ( 4 , 6 ) ; int min_cost = minimumCost ( V , cost ) ; Console . Write ( min_cost + " STRNEWLINE " ) ; } }