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