Exemplo n.º 1
0
 public bool HasNeighbour(int neighbourName)
 {
     if (NeighboursNames.Contains(neighbourName))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 2
0
        public void RemoveNeighbour(int neighbourName)
        {
            NeighboursNames.Remove(neighbourName);

            Degree = NeighboursNames.Count;
        }
Exemplo n.º 3
0
        public void AddNeighbour(int neighbourName)
        {
            NeighboursNames.Add(neighbourName);

            Degree = NeighboursNames.Count;
        }