public bool HasNeighbour(int neighbourName) { if (NeighboursNames.Contains(neighbourName)) { return(true); } else { return(false); } }
public void RemoveNeighbour(int neighbourName) { NeighboursNames.Remove(neighbourName); Degree = NeighboursNames.Count; }
public void AddNeighbour(int neighbourName) { NeighboursNames.Add(neighbourName); Degree = NeighboursNames.Count; }