/** * Collects the "disappearing potential" associated with nodes that have either no incoming edges, * no outgoing edges, or both. Nodes that have no incoming edges do not directly contribute to the * hub scores of other nodes; similarly, nodes that have no outgoing edges do not directly * contribute to the authority scores of other nodes. These values are collected at each step and * then distributed across all nodes as a part of the normalization process. (This process is not * required for, and does not affect, the 'sum-of-squares'-style normalization.) */ @Override protected void collectDisappearingPotential(N v) { if (graph.outDegree(v) == 0) { Preconditions.checkArgument(isDisconnectedGraphOK(), "Outdegree of " + v + " must be > 0"); disappearing_potential.hub += getCurrentValue(v).authority; } if (graph.inDegree(v) == 0) { Preconditions.checkArgument(isDisconnectedGraphOK(), "Indegree of " + v + " must be > 0"); disappearing_potential.authority += getCurrentValue(v).hub; } } }
/** * Collects the "disappearing potential" associated with vertices that have either * no incoming edges, no outgoing edges, or both. Vertices that have no incoming edges * do not directly contribute to the hub scores of other vertices; similarly, vertices * that have no outgoing edges do not directly contribute to the authority scores of * other vertices. These values are collected at each step and then distributed across all vertices * as a part of the normalization process. (This process is not required for, and does * not affect, the 'sum-of-squares'-style normalization.) */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential.hub += getCurrentValue(v).authority; else throw new IllegalArgumentException("Outdegree of " + v + " must be > 0"); } if (graph.inDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential.authority += getCurrentValue(v).hub; else throw new IllegalArgumentException("Indegree of " + v + " must be > 0"); } }
/** * Collects the "disappearing potential" associated with vertices that have * either no incoming edges, no outgoing edges, or both. Vertices that have * no incoming edges do not directly contribute to the hub scores of other * vertices; similarly, vertices that have no outgoing edges do not directly * contribute to the authority scores of other vertices. These values are * collected at each step and then distributed across all vertices as a part * of the normalization process. (This process is not required for, and does * not affect, the 'sum-of-squares'-style normalization.) */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) { disappearing_potential.hub += getCurrentValue(v).authority; } else { throw new IllegalArgumentException( "Outdegree of " + v + " must be > 0"); } } if (graph.inDegree(v) == 0) { if (isDisconnectedGraphOK()) { disappearing_potential.authority += getCurrentValue(v).hub; } else { throw new IllegalArgumentException( "Indegree of " + v + " must be > 0"); } } }
/** * Collects the "disappearing potential" associated with vertices that have either * no incoming edges, no outgoing edges, or both. Vertices that have no incoming edges * do not directly contribute to the hub scores of other vertices; similarly, vertices * that have no outgoing edges do not directly contribute to the authority scores of * other vertices. These values are collected at each step and then distributed across all vertices * as a part of the normalization process. (This process is not required for, and does * not affect, the 'sum-of-squares'-style normalization.) */ @Override protected void collectDisappearingPotential(V v) { if (graph.outDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential.hub += getCurrentValue(v).authority; else throw new IllegalArgumentException("Outdegree of " + v + " must be > 0"); } if (graph.inDegree(v) == 0) { if (isDisconnectedGraphOK()) disappearing_potential.authority += getCurrentValue(v).hub; else throw new IllegalArgumentException("Indegree of " + v + " must be > 0"); } }