package com.google.common.graph; import com.google.common.graph.GraphConstants; /* JADX INFO: Access modifiers changed from: package-private */ @ElementTypesAreNonnullByDefault /* loaded from: classes3.dex */ public final class StandardMutableGraph extends ForwardingGraph implements MutableGraph { private final MutableValueGraph backingValueGraph; @Override // com.google.common.graph.ForwardingGraph BaseGraph delegate() { return this.backingValueGraph; } /* JADX INFO: Access modifiers changed from: package-private */ public StandardMutableGraph(AbstractGraphBuilder abstractGraphBuilder) { this.backingValueGraph = new StandardMutableValueGraph(abstractGraphBuilder); } @Override // com.google.common.graph.MutableGraph public boolean addNode(N n) { return this.backingValueGraph.addNode(n); } @Override // com.google.common.graph.MutableGraph public boolean putEdge(N n, N n2) { return this.backingValueGraph.putEdgeValue(n, n2, GraphConstants.Presence.EDGE_EXISTS) == null; } @Override // com.google.common.graph.MutableGraph public boolean putEdge(EndpointPair endpointPair) { validateEndpoints(endpointPair); return putEdge(endpointPair.nodeU(), endpointPair.nodeV()); } @Override // com.google.common.graph.MutableGraph public boolean removeNode(N n) { return this.backingValueGraph.removeNode(n); } @Override // com.google.common.graph.MutableGraph public boolean removeEdge(N n, N n2) { return this.backingValueGraph.removeEdge(n, n2) != null; } @Override // com.google.common.graph.MutableGraph public boolean removeEdge(EndpointPair endpointPair) { validateEndpoints(endpointPair); return removeEdge(endpointPair.nodeU(), endpointPair.nodeV()); } }