![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.graph.StandardValueGraph.class Maven / Gradle / Ivy
???? 4 ? &com/google/common/graph/GraphConstants ,com/google/common/graph/AbstractGraphBuilder nodeOrder &Lcom/google/common/graph/ElementOrder;
expectedNodeCount !Lcom/google/common/base/Optional;
java/lang/Integer valueOf (I)Ljava/lang/Integer;
com/google/common/base/Optional or &(Ljava/lang/Object;)Ljava/lang/Object;
intValue ()I
! " $com/google/common/graph/ElementOrder createMap (I)Ljava/util/Map;
$ % & ' ( *com/google/common/graph/StandardValueGraph A(Lcom/google/common/graph/AbstractGraphBuilder;Ljava/util/Map;J)V
* + , ' - *com/google/common/graph/AbstractValueGraph ()V / 0 1 directed Z $ 3 4 1
isDirected 6 7 1 allowsSelfLoops $ 6
: ; < cast (()Lcom/google/common/graph/ElementOrder; $ ? java/util/TreeMap A )com/google/common/graph/MapRetrievalCache
@ C ' D (Ljava/util/Map;)V F (com/google/common/graph/MapIteratorCache
E C $ I J K nodeConnections *Lcom/google/common/graph/MapIteratorCache;
M N O P Q com/google/common/graph/Graphs checkNonNegative (J)J $ S T U edgeCount J
E W X Y unmodifiableKeySet ()Ljava/util/Set;
$ [ \ ] checkedConnections >(Ljava/lang/Object;)Lcom/google/common/graph/GraphConnections; _ ` a b Y (com/google/common/graph/GraphConnections
adjacentNodes
$ d e f nodeInvalidatableSet 2(Ljava/util/Set;Ljava/lang/Object;)Ljava/util/Set; _ h i Y predecessors _ k l Y
successors n ,com/google/common/graph/StandardValueGraph$1
m p ' q ?(Lcom/google/common/graph/StandardValueGraph;Lcom/google/common/graph/BaseGraph;Ljava/lang/Object;Lcom/google/common/graph/GraphConnections;)V
s t u v $com/google/common/base/Preconditions checkNotNull
$ x y z hasEdgeConnectingInternal '(Ljava/lang/Object;Ljava/lang/Object;)Z
$ | } ~ isOrderingCompatible )(Lcom/google/common/graph/EndpointPair;)Z
? ? ? ? ? $com/google/common/graph/EndpointPair nodeU ()Ljava/lang/Object;
? ? ? ? nodeV
$ ? ? ? edgeValueOrDefaultInternal J(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
$ ? ? ? validateEndpoints )(Lcom/google/common/graph/EndpointPair;)V
E ? ? get ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder
? + ? Node
? ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? ? ? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ! is not an element of this graph.
? ? ? ? toString ()Ljava/lang/String;
? ? ' ? (Ljava/lang/String;)V
E ? ? ? containsKey (Ljava/lang/Object;)Z ? ? ? ? ?
java/util/Set contains _ ? ? value
$ ? l ? #(Ljava/lang/Object;)Ljava/util/Set;
$ ? i ? Signature +Lcom/google/common/graph/ElementOrder; aLcom/google/common/graph/MapIteratorCache;>; 1(Lcom/google/common/graph/AbstractGraphBuilder;)V Code LineNumberTable LocalVariableTable this ,Lcom/google/common/graph/StandardValueGraph; builder .Lcom/google/common/graph/AbstractGraphBuilder; LocalVariableTypeTable 4Lcom/google/common/graph/StandardValueGraph; 4Lcom/google/common/graph/AbstractGraphBuilder<-TN;>; MethodParameters 7(Lcom/google/common/graph/AbstractGraphBuilder<-TN;>;)V Ljava/util/Map; FLjava/util/Map;>;
StackMapTable ?
java/util/Map ~(Lcom/google/common/graph/AbstractGraphBuilder<-TN;>;Ljava/util/Map;>;J)V nodes ()Ljava/util/Set; ()Z -()Lcom/google/common/graph/ElementOrder; node Ljava/lang/Object; TN; (TN;)Ljava/util/Set;
incidentEdges connections *Lcom/google/common/graph/GraphConnections; incident )Lcom/google/common/graph/IncidentEdgeSet; 2Lcom/google/common/graph/GraphConnections; .Lcom/google/common/graph/IncidentEdgeSet; A(TN;)Ljava/util/Set;>; hasEdgeConnecting (TN;TN;)Z endpoints &Lcom/google/common/graph/EndpointPair; +Lcom/google/common/graph/EndpointPair; .(Lcom/google/common/graph/EndpointPair;)Z edgeValueOrDefault defaultValue TV; (TN;TN;TV;)TV; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; "RuntimeVisibleParameterAnnotations L(Lcom/google/common/graph/EndpointPair;Ljava/lang/Object;)Ljava/lang/Object; 3(Lcom/google/common/graph/EndpointPair;TV;)TV; ()J 7(TN;)Lcom/google/common/graph/GraphConnections; containsNode (TN;)Z connectionsU ? java/lang/Object ((Ljava/lang/Object;)Ljava/lang/Iterable; ^Lcom/google/common/graph/AbstractValueGraph;
SourceFile StandardValueGraph.java 9Lcom/google/common/graph/ElementTypesAreNonnullByDefault; InnerClasses $ * 4 1 7 1 ? ? J K ? ? T U ' ? ? ? *++? +?
?
? ? ? ? ? #? ? : = <