C # implementation to find the minimum colors required to such that edges forming cycle don 't have same color
using System ; using System . Collections . Generic ; class GFG { static int n = 5 , m = 7 ; class pair { public int first , second ; public pair ( int first , int second ) { this . first = first ; this . second = second ; } }