code: public void addNode(N node)
      {
          if(!nodes.containsKey(node))
              nodes.put(node, new Pair<HashSet<N>, HashSet<N>>(new HashSet<N>(), new HashSet<N>()));
      }
docs: Adds a new node to the graph
  @param node the object to make a node