Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            AnyEdgeParsedPatternNode tmp = obj as AnyEdgeParsedPatternNode;

            if (tmp == null)
            {
                return(false);
            }
            else
            {
                return(base.Equals(obj));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Tries to jump to a variable node inside edge or to the next vertex.
        /// </summary>
        public void Visit(AnyEdgeNode node)
        {
            this.readingVertex = false;

            ParsedPatternNode em = new AnyEdgeParsedPatternNode();

            currentPattern.AddParsedPatternNode(em);

            if (node.matchVariable != null)
            {
                node.matchVariable.Accept(this);
            }
            if (node.next == null)
            {
                throw new ArgumentException($"{this.GetType()}, missing end vertex from edge.");
            }
            else
            {
                node.next.Accept(this);
            }
        }