src/main/java/org/thegalactic/dgraph/ConcreteDGraph.java
public boolean addNode(final Node<N> node) {
        if (!this.containsNode(node)) {
            this.nodes.add(node);
            this.successors.put(node, new TreeSet<Edge<N, E>>());
            this.predecessors.put(node, new TreeSet<Edge<N, E>>());
            return true;
        }
        return false;
    }
/**
     * Adds the specified node to the set of node of this component.
     *
     * @param node the node to insert
     *
     * @return true if the node has been successfully inserted
     */
Adds the specified node to the set of node of this component.
@param node the node to insert

@return true if the node has been successfully inserted
Adds the specified node to the set of node of this component . @param node the node to insert @return true if the node has been successfully inserted
public boolean addNode(final Node<N> node) {
        if (!this.containsNode(node)) {
            this.nodes.add(node);
            this.successors.put(node, new TreeSet<Edge<N, E>>());
            this.predecessors.put(node, new TreeSet<Edge<N, E>>());
            return true;
        }
        return false;
    }
public boolean addNode ( final Node < N > node ) { if ( ! this . containsNode ( node ) ) { this . nodes . add ( node ) ; this . successors . put ( node , new TreeSet < Edge < N , E > > ( ) ) ; this . predecessors . put ( node , new TreeSet < Edge < N , E > > ( ) ) ; return true ; } return false ; }
Adds the specified node to the set of node of this component.
Adds the specified node to the set of node of this component .