package com.google.common.graph; import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; import com.google.common.collect.ImmutableBiMap; import java.util.Collections; import java.util.Map; import java.util.Set; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class UndirectedNetworkConnections extends AbstractUndirectedNetworkConnections { protected UndirectedNetworkConnections(Map map) { super(map); } /* JADX INFO: Access modifiers changed from: package-private */ public static UndirectedNetworkConnections of() { return new UndirectedNetworkConnections<>(HashBiMap.create(2)); } /* JADX INFO: Access modifiers changed from: package-private */ public static UndirectedNetworkConnections ofImmutable(Map map) { return new UndirectedNetworkConnections<>(ImmutableBiMap.copyOf((Map) map)); } @Override // com.google.common.graph.NetworkConnections public final Set adjacentNodes() { return Collections.unmodifiableSet(((BiMap) this.incidentEdgeMap).values()); } @Override // com.google.common.graph.NetworkConnections public final Set edgesConnecting(N n) { return new EdgesConnecting(((BiMap) this.incidentEdgeMap).inverse(), n); } }