code: public void addNode(HtmlMatcherGraphNode node) {
      checkNotNull(node);
      if (graphCursor.isPresent()) {
        graphCursor.get().linkActiveEdgeToNode(node);
      }
      setGraphCursorNode(node);
    }
docs: Attaches a new HTML tag node to the graph at the current cursor position.
  
  @param node the node to add