src/main/java/org/thegalactic/dgraph/ConcreteDGraph.java
public boolean addEdge(final Edge<N, E> edge) {
        if (this.containsNode(edge.getSource()) && this.containsNode(edge.getTarget())) {
            this.successors.get(edge.getSource()).add(edge);
            this.predecessors.get(edge.getTarget()).add(edge);
            return true;
        }
        return false;
    }
/**
     * Adds the specified edge to this component in the successors of
     * edge.getSource() and in the predecessors of edge.getTarget().
     *
     * If the case where nodes to and source of this edges don't belongs to the
     * node set, then the edge will not be added.
     *
     * @param edge the edge to be added
     *
     * @return true if the edge was added
     */
Adds the specified edge to this component in the successors of
edge.getSource() and in the predecessors of edge.getTarget().

If the case where nodes to and source of this edges don't belongs to the
node set, then the edge will not be added.

@param edge the edge to be added

@return true if the edge was added
Adds the specified edge to this component in the successors of edge . getSource () and in the predecessors of edge . getTarget () . If the case where nodes to and source of this edges don ' t belongs to the node set then the edge will not be added . @param edge the edge to be added @return true if the edge was added
public boolean addEdge(final Edge<N, E> edge) {
        if (this.containsNode(edge.getSource()) && this.containsNode(edge.getTarget())) {
            this.successors.get(edge.getSource()).add(edge);
            this.predecessors.get(edge.getTarget()).add(edge);
            return true;
        }
        return false;
    }
public boolean addEdge ( final Edge < N , E > edge ) { if ( this . containsNode ( edge . getSource ( ) ) && this . containsNode ( edge . getTarget ( ) ) ) { this . successors . get ( edge . getSource ( ) ) . add ( edge ) ; this . predecessors . get ( edge . getTarget ( ) ) . add ( edge ) ; return true ; } return false ; }
Adds the specified edge to this component in the successors of
 edge.getSource() and in the predecessors of edge.getTarget().
Adds the specified edge to this component in the successors of edge . getSource () and in the predecessors of edge . getTarget () .