aboutsummaryrefslogtreecommitdiff
path: root/guava/src/com/google/common/graph/GraphConnections.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava/src/com/google/common/graph/GraphConnections.java')
-rw-r--r--guava/src/com/google/common/graph/GraphConnections.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/guava/src/com/google/common/graph/GraphConnections.java b/guava/src/com/google/common/graph/GraphConnections.java
index e4b3aa78a..bed5508a1 100644
--- a/guava/src/com/google/common/graph/GraphConnections.java
+++ b/guava/src/com/google/common/graph/GraphConnections.java
@@ -17,6 +17,7 @@
package com.google.common.graph;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
+import java.util.Iterator;
import java.util.Set;
import org.checkerframework.checker.nullness.qual.Nullable;
@@ -37,6 +38,13 @@ interface GraphConnections<N, V> {
Set<N> successors();
/**
+ * Returns an iterator over the incident edges.
+ *
+ * @param thisNode The node that this all of the connections in this class are connected to.
+ */
+ Iterator<EndpointPair<N>> incidentEdgeIterator(N thisNode);
+
+ /**
* Returns the value associated with the edge connecting the origin node to {@code node}, or null
* if there is no such edge.
*/