public Messege CreateMessege(Router to, string m)
 {
     return(messege = new Messege()
     {
         destination = to, messege = m
     });
 }
 public void GetMessege(Messege m)
 {
     if (m.destination == this)
     {
         Console.WriteLine(m.messege);
         messege = null;
         return;
     }
     messege = m;
 }
 public void SendMessege()
 {
     if (messege != null)
     {
         Router via = findPath(messege.destination);
         if (via == null)
         {
             Console.WriteLine("Router is unreacheable");
         }
         else
         {
             via.GetMessege(messege);
         }
         messege = null;
     }
 }