using System; using System.Collections.Generic; using System.Linq; // Класс для ввода/вывода графа static class GraphIoUtilities { static private readonly int MAX_AMOUNT = 20; static public Dictionary GenerateCharToVertexId() { Dictionary result = new Dictionary(); char letter = 'А'; for (int i = 1; i <= MAX_AMOUNT; i++) { result[letter] = i; letter++; } return result; } static public Dictionary GenerateVertexIdToChar() { Dictionary result = new Dictionary(); char letter = 'А'; for (int i = 1; i <= MAX_AMOUNT; i++) { result[i] = letter; letter++; } return result; } }