/** * Collects the "disappearing potential" associated with nodes that have no outgoing edges. Nodes * that have no outgoing edges do not directly contribute to the scores of other nodes. These * values are collected at each step and then distributed across all nodes as a part of the * normalization process. */ @Override protected void collectDisappearingPotential(N v) { if (graph.outDegree(v) == 0) { Preconditions.checkState(isDisconnectedGraphOK(), "Outdegree of " + v + " must be > 0"); disappearing_potential += getCurrentValue(v); } } }
/** * Collects the "disappearing potential" associated with vertices that have * no outgoing edges. Vertices that have no outgoing edges do not directly * contribute to the scores of other vertices. These values are collected * at each step and then distributed across all vertices * as a part of the normalization process. */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential += getCurrentValue(v); else throw new IllegalArgumentException("Outdegree of " + v + " must be > 0"); } } }
/** * Collects the "disappearing potential" associated with vertices that have * no outgoing edges. Vertices that have no outgoing edges do not directly * contribute to the scores of other vertices. These values are collected at * each step and then distributed across all vertices as a part of the * normalization process. */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) { disappearing_potential += getCurrentValue(v); } else { throw new IllegalArgumentException( "Outdegree of " + v + " must be > 0"); } } } }
/** * Collects the "disappearing potential" associated with vertices that have * no outgoing edges. Vertices that have no outgoing edges do not directly * contribute to the scores of other vertices. These values are collected * at each step and then distributed across all vertices * as a part of the normalization process. */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential += getCurrentValue(v); else throw new IllegalArgumentException("Outdegree of " + v + " must be > 0"); } } }