public bool IsConnectedTo(ushort otherSegmentId) { return(IsValid() && ConnectedSegments.Contains(otherSegmentId)); }