public abstract class com.google.common.graph.AbstractNetwork<N, E> implements com.google.common.graph.Network<N, E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.common.graph.AbstractNetwork
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
public com.google.common.graph.Graph<N> asGraph();
descriptor: ()Lcom/google/common/graph/Graph;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.graph.AbstractNetwork$1
dup
aload 0
invokespecial com.google.common.graph.AbstractNetwork$1.<init>:(Lcom/google/common/graph/AbstractNetwork;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
Signature: ()Lcom/google/common/graph/Graph<TN;>;
public int degree();
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.isDirected:()Z
ifeq 2
1: aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.inEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.outEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
invokestatic com.google.common.math.IntMath.saturatedAdd:(II)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.incidentEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
aload 0
aload 1
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.edgesConnecting:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
invokestatic com.google.common.math.IntMath.saturatedAdd:(II)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 3 1 node TN;
Signature: (TN;)I
MethodParameters:
Name Flags
node
public int inDegree();
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.isDirected:()Z
ifeq 1
aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.inEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.degree:(Ljava/lang/Object;)I
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 3 1 node TN;
Signature: (TN;)I
MethodParameters:
Name Flags
node
public int outDegree();
descriptor: (Ljava/lang/Object;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.isDirected:()Z
ifeq 1
aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.outEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.size:()I
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.degree:(Ljava/lang/Object;)I
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 3 1 node TN;
Signature: (TN;)I
MethodParameters:
Name Flags
node
public java.util.Set<E> adjacentEdges(E);
descriptor: (Ljava/lang/Object;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.incidentNodes:(Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.google.common.graph.EndpointPair.nodeU:()Ljava/lang/Object;
invokevirtual com.google.common.graph.AbstractNetwork.incidentEdges:(Ljava/lang/Object;)Ljava/util/Set;
aload 0
aload 2
invokevirtual com.google.common.graph.EndpointPair.nodeV:()Ljava/lang/Object;
invokevirtual com.google.common.graph.AbstractNetwork.incidentEdges:(Ljava/lang/Object;)Ljava/util/Set;
invokestatic com.google.common.collect.Sets.union:(Ljava/util/Set;Ljava/util/Set;)Lcom/google/common/collect/Sets$SetView;
2: astore 3
start local 3 3: aload 3
aload 1
invokestatic com.google.common.collect.ImmutableSet.of:(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
invokestatic com.google.common.collect.Sets.difference:(Ljava/util/Set;Ljava/util/Set;)Lcom/google/common/collect/Sets$SetView;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 4 1 edge TE;
1 4 2 endpointPair Lcom/google/common/graph/EndpointPair<TN;>;
3 4 3 endpointPairIncidentEdges Ljava/util/Set<TE;>;
Signature: (TE;)Ljava/util/Set<TE;>;
MethodParameters:
Name Flags
edge
public java.util.Set<E> edgesConnecting(N, N);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.outEdges:(Ljava/lang/Object;)Ljava/util/Set;
astore 3
start local 3 1: aload 0
aload 2
invokevirtual com.google.common.graph.AbstractNetwork.inEdges:(Ljava/lang/Object;)Ljava/util/Set;
astore 4
start local 4 2: aload 3
invokeinterface java.util.Set.size:()I
aload 4
invokeinterface java.util.Set.size:()I
if_icmpgt 4
3: aload 3
aload 0
aload 1
aload 2
invokevirtual com.google.common.graph.AbstractNetwork.connectedPredicate:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/base/Predicate;
invokestatic com.google.common.collect.Sets.filter:(Ljava/util/Set;Lcom/google/common/base/Predicate;)Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
goto 5
4: StackMap locals: java.util.Set java.util.Set
StackMap stack:
aload 4
aload 0
aload 2
aload 1
invokevirtual com.google.common.graph.AbstractNetwork.connectedPredicate:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/base/Predicate;
invokestatic com.google.common.collect.Sets.filter:(Ljava/util/Set;Lcom/google/common/base/Predicate;)Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
5: StackMap locals:
StackMap stack: java.util.Set
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 6 1 nodeU TN;
0 6 2 nodeV TN;
1 6 3 outEdgesU Ljava/util/Set<TE;>;
2 6 4 inEdgesV Ljava/util/Set<TE;>;
Signature: (TN;TN;)Ljava/util/Set<TE;>;
MethodParameters:
Name Flags
nodeU
nodeV
private com.google.common.base.Predicate<E> connectedPredicate(N, N);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/base/Predicate;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.google.common.graph.AbstractNetwork$2
dup
aload 0
aload 1
aload 2
invokespecial com.google.common.graph.AbstractNetwork$2.<init>:(Lcom/google/common/graph/AbstractNetwork;Ljava/lang/Object;Ljava/lang/Object;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 1 1 nodePresent TN;
0 1 2 nodeToCheck TN;
Signature: (TN;TN;)Lcom/google/common/base/Predicate<TE;>;
MethodParameters:
Name Flags
nodePresent final
nodeToCheck final
public java.util.Optional<E> edgeConnecting(N, N);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual com.google.common.graph.AbstractNetwork.edgesConnecting:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
astore 3
start local 3 1: aload 3
invokeinterface java.util.Set.size:()I
tableswitch { // 0 - 1
0: 2
1: 3
default: 4
}
2: StackMap locals: java.util.Set
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Cannot call edgeConnecting() when parallel edges exist between %s and %s. Consider calling edgesConnecting() instead."
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 5 1 nodeU TN;
0 5 2 nodeV TN;
1 5 3 edgesConnecting Ljava/util/Set<TE;>;
Signature: (TN;TN;)Ljava/util/Optional<TE;>;
MethodParameters:
Name Flags
nodeU
nodeV
public E edgeConnectingOrNull(N, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual com.google.common.graph.AbstractNetwork.edgeConnecting:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 1 1 nodeU TN;
0 1 2 nodeV TN;
Signature: (TN;TN;)TE;
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
nodeU
nodeV
public boolean hasEdgeConnecting(N, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual com.google.common.graph.AbstractNetwork.edgesConnecting:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 3 1 nodeU TN;
0 3 2 nodeV TN;
Signature: (TN;TN;)Z
MethodParameters:
Name Flags
nodeU
nodeV
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.google.common.graph.Network
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.google.common.graph.Network
astore 2
start local 2 5: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.isDirected:()Z
aload 2
invokeinterface com.google.common.graph.Network.isDirected:()Z
if_icmpne 9
6: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.nodes:()Ljava/util/Set;
aload 2
invokeinterface com.google.common.graph.Network.nodes:()Ljava/util/Set;
invokeinterface java.util.Set.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
invokestatic com.google.common.graph.AbstractNetwork.edgeIncidentNodesMap:(Lcom/google/common/graph/Network;)Ljava/util/Map;
aload 2
invokestatic com.google.common.graph.AbstractNetwork.edgeIncidentNodesMap:(Lcom/google/common/graph/Network;)Ljava/util/Map;
invokeinterface java.util.Map.equals:(Ljava/lang/Object;)Z
ifeq 9
8: iconst_1
ireturn
StackMap locals: com.google.common.graph.Network
StackMap stack:
9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
0 10 1 obj Ljava/lang/Object;
5 10 2 other Lcom/google/common/graph/Network<**>;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
obj
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.graph.AbstractNetwork.edgeIncidentNodesMap:(Lcom/google/common/graph/Network;)Ljava/util/Map;
invokeinterface java.util.Map.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "isDirected: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.isDirected:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
2: ldc ", allowsParallelEdges: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.allowsParallelEdges:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
4: ldc ", allowsSelfLoops: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.allowsSelfLoops:()Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
6: ldc ", nodes: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
invokevirtual com.google.common.graph.AbstractNetwork.nodes:()Ljava/util/Set;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
8: ldc ", edges: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 0
invokestatic com.google.common.graph.AbstractNetwork.edgeIncidentNodesMap:(Lcom/google/common/graph/Network;)Ljava/util/Map;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/google/common/graph/AbstractNetwork<TN;TE;>;
private static <N, E> java.util.Map<E, com.google.common.graph.EndpointPair<N>> edgeIncidentNodesMap(com.google.common.graph.Network<N, E>);
descriptor: (Lcom/google/common/graph/Network;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new com.google.common.graph.AbstractNetwork$3
dup
aload 0
invokespecial com.google.common.graph.AbstractNetwork$3.<init>:(Lcom/google/common/graph/Network;)V
1: astore 1
start local 1 2: aload 0
invokeinterface com.google.common.graph.Network.edges:()Ljava/util/Set;
aload 1
invokestatic com.google.common.collect.Maps.asMap:(Ljava/util/Set;Lcom/google/common/base/Function;)Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 network Lcom/google/common/graph/Network<TN;TE;>;
2 3 1 edgeToIncidentNodesFn Lcom/google/common/base/Function<TE;Lcom/google/common/graph/EndpointPair<TN;>;>;
Signature: <N:Ljava/lang/Object;E:Ljava/lang/Object;>(Lcom/google/common/graph/Network<TN;TE;>;)Ljava/util/Map<TE;Lcom/google/common/graph/EndpointPair<TN;>;>;
MethodParameters:
Name Flags
network final
}
Signature: <N:Ljava/lang/Object;E:Ljava/lang/Object;>Ljava/lang/Object;Lcom/google/common/graph/Network<TN;TE;>;
SourceFile: "AbstractNetwork.java"
NestMembers:
com.google.common.graph.AbstractNetwork$1 com.google.common.graph.AbstractNetwork$1$1 com.google.common.graph.AbstractNetwork$1$1$1 com.google.common.graph.AbstractNetwork$2 com.google.common.graph.AbstractNetwork$3
InnerClasses:
public abstract SetView = com.google.common.collect.Sets$SetView of com.google.common.collect.Sets
com.google.common.graph.AbstractNetwork$1
com.google.common.graph.AbstractNetwork$2
com.google.common.graph.AbstractNetwork$3
RuntimeInvisibleAnnotations:
com.google.common.annotations.Beta()