private void setGraph()
 {
     Incidences_lists = new My_list <Branch> [NumberOfVertices];
     // Inicjalization of every list
     for (int i = 0; i < Incidences_lists.Length; i++)
     {
         Incidences_lists[i] = new My_list <Branch>();
     }
 }
Example #2
0
 /// <summary>
 /// There the array is also incialized
 /// </summary>
 /// <param name="line"></param>
 private void decodeFirstLine(string line)
 {
     string[] tmp_strings;
     tmp_strings = line.Split(Separator);
     if (tmp_strings.GetLength(0) != 3)
     {
         throw (new IOException("zły format pliku"));
     }
     NumberOfBranches = Int32.Parse(tmp_strings[0]);
     NumberOfVertices = Int32.Parse(tmp_strings[1]);
     StartingVertice  = Int32.Parse(tmp_strings[2]);
     Incidences_lists = new My_list <Branch> [NumberOfVertices];
 }