using System.Collections.Generic;
public static void Main()
Console.WriteLine("Въведете броя на върховете:");
n = int.Parse(Console.ReadLine());
Console.WriteLine("Въведете броя на ребрата:");
m = int.Parse(Console.ReadLine());
List<int>[] Gr = new List<int>[n + 1];
{ Gr[i] = new List<int>();
Console.WriteLine("Въведете два върха, свързани с ребро:");
u = int.Parse(Console.ReadLine());
v = int.Parse(Console.ReadLine());
Console.Write(i + " : ");
for (int j = 0; j < Gr[i].Count; j++)
Console.Write(Gr[i][j] + " ");