public override bool Equals(object obj)
        {
            InEdgeParsedPatternNode tmp = obj as InEdgeParsedPatternNode;

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

            ParsedPatternNode em = new InEdgeParsedPatternNode();

            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);
            }
        }