public override bool Equals(object obj) { VertexParsedPatternNode tmp = obj as VertexParsedPatternNode; if (tmp == null) { return(false); } else { return(base.Equals(obj)); } }
/// <summary> /// Try to jump to a variable node inside the vertex or continue to the edge. /// </summary> public void Visit(VertexNode node) { this.readingVertex = true; ParsedPatternNode vm = new VertexParsedPatternNode(); currentPattern.AddParsedPatternNode(vm); if (node.matchVariable != null) { node.matchVariable.Accept(this); } if (node.next != null) { node.next.Accept(this); } }