/// <summary>
        /// Добавляет экземпляр паттерна.
        /// </summary>
        /// <param name="vertices">Входящие в экземпляр вершины</param>
        public void AddInstance(string[] vertices)
        {
            var instance = new PatternInstance(this, vertices);

            Instances.Add(instance);
        }
Example #2
0
 public bool Intersects(PatternInstance other)
 {
     return(Vertices.Any(v => Array.IndexOf(other.Vertices, v) != -1));
 }