Rabbit-R1/android (non root)/java/sources/com/google/common/graph/Network.java
2024-05-21 17:08:36 -04:00

78 lines
1.8 KiB
Java

package com.google.common.graph;
import com.google.errorprone.annotations.DoNotMock;
import java.util.Set;
import javax.annotation.CheckForNull;
@DoNotMock("Use NetworkBuilder to create a real instance")
@ElementTypesAreNonnullByDefault
/* loaded from: classes3.dex */
public interface Network<N, E> extends SuccessorsFunction<N>, PredecessorsFunction<N> {
Set<E> adjacentEdges(E e);
Set<N> adjacentNodes(N n);
boolean allowsParallelEdges();
boolean allowsSelfLoops();
Graph<N> asGraph();
int degree(N n);
@CheckForNull
E edgeConnectingOrNull(EndpointPair<N> endpointPair);
@CheckForNull
E edgeConnectingOrNull(N n, N n2);
ElementOrder<E> edgeOrder();
Set<E> edges();
Set<E> edgesConnecting(EndpointPair<N> endpointPair);
Set<E> edgesConnecting(N n, N n2);
boolean equals(@CheckForNull Object obj);
boolean hasEdgeConnecting(EndpointPair<N> endpointPair);
boolean hasEdgeConnecting(N n, N n2);
int hashCode();
int inDegree(N n);
Set<E> inEdges(N n);
Set<E> incidentEdges(N n);
EndpointPair<N> incidentNodes(E e);
boolean isDirected();
ElementOrder<N> nodeOrder();
Set<N> nodes();
int outDegree(N n);
Set<E> outEdges(N n);
Set<N> predecessors(N n);
@Override // com.google.common.graph.SuccessorsFunction, com.google.common.graph.Graph
Set<N> successors(N n);
/* JADX WARN: Multi-variable type inference failed */
/* bridge */ /* synthetic */ default Iterable predecessors(Object obj) {
return predecessors((Network<N, E>) obj);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.google.common.graph.SuccessorsFunction, com.google.common.graph.Graph
/* bridge */ /* synthetic */ default Iterable successors(Object obj) {
return successors((Network<N, E>) obj);
}
}