private bool AddLink(PointListItem item) { if (m_LinkItems.Any(x => x.Id() == item.Id())) { return(false); } m_LinkItems.Add(item); return(true); }
private void FindChains(PointListItem startItem) { while (m_OriginsList.Count > 0) { if (IsHaveNeighbors(startItem.Id())) { //var ch = new Chain(startItem); } else { m_OriginsList.Remove(startItem); } } }
public int Id() { return(m_Self.Id()); }
public Tuple <int, int, int> GetIds() { return(new Tuple <int, int, int>(A.Id(), B.Id(), C.Id())); }