src/main/java/org/thegalactic/dgraph/ConcreteDGraph.java
public int reflexiveClosure() {
        int size = 0;
        for (Node<N> node : this.nodes) {
            if (!this.containsEdge(node, node)) {
                size++;
                this.addEdge(node, node);
            }
        }
        return size;
    }
/**
     * Computes the reflexive closure of this component.
     *
     * @return the number of added edges
     */
Computes the reflexive closure of this component.
@return the number of added edges
Computes the reflexive closure of this component . @return the number of added edges
public int reflexiveClosure() {
        int size = 0;
        for (Node<N> node : this.nodes) {
            if (!this.containsEdge(node, node)) {
                size++;
                this.addEdge(node, node);
            }
        }
        return size;
    }
public int reflexiveClosure ( ) { int size = 0 ; for ( Node < N > node : this . nodes ) { if ( ! this . containsEdge ( node , node ) ) { size ++ ; this . addEdge ( node , node ) ; } } return size ; }
Computes the reflexive closure of this component.
Computes the reflexive closure of this component .