All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.elk.alg.layered.intermediate.NodePromotion.class Maven / Gradle / Ivy

There is a newer version: 1.2024.8
Show newest version
????7~6org/eclipse/elk/alg/layered/intermediate/NodePromotionjava/lang/Object)org/eclipse/elk/core/alg/ILayoutProcessor MODEL_ORDER_NODE_COMPARATOR_DESCLjava/util/Comparator;	SignatureALjava/util/Comparator;MODEL_ORDER_NODE_COMPARATOR_ASCmasterGraph*Lorg/eclipse/elk/alg/layered/graph/LGraph;nodesWithIncomingEdgesLjava/util/List;;Ljava/util/List;nodescurrentWidth%Ljava/util/List;currentWidthPixel$Ljava/util/List;layers[I
degreeDiff[[ImaxWidthI
maxWidthPixelDdummyNodeCount	maxHeight
nodeSizeAffix	dummySizepromotionStrategy;Lorg/eclipse/elk/alg/layered/options/NodePromotionStrategy;
biLayerMap?Lorg/eclipse/elk/alg/layered/intermediate/BiLinkedHashMultiMap;}Lorg/eclipse/elk/alg/layered/intermediate/BiLinkedHashMultiMap;G$SWITCH_TABLE$org$eclipse$elk$alg$layered$options$NodePromotionStrategy()VCode,8org/eclipse/elk/alg/layered/intermediate/NodePromotion$1
+./)	138org/eclipse/elk/alg/layered/intermediate/NodePromotion$2
2.	6LineNumberTableLocalVariableTable
.;=org/eclipse/elk/alg/layered/intermediate/BiLinkedHashMultiMap
:.	>$%this8Lorg/eclipse/elk/alg/layered/intermediate/NodePromotion;process\(Lorg/eclipse/elk/alg/layered/graph/LGraph;Lorg/eclipse/elk/core/util/IElkProgressMonitor;)VDNode promotion heuristicFHG-org/eclipse/elk/core/util/IElkProgressMonitorIJbegin(Ljava/lang/String;F)Z	L
	NPO2org/eclipse/elk/alg/layered/options/LayeredOptionsQR LAYERING_NODE_PROMOTION_STRATEGY,Lorg/eclipse/elk/graph/properties/IProperty;
TVU(org/eclipse/elk/alg/layered/graph/LGraphWXgetProperty@(Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object;Z9org/eclipse/elk/alg/layered/options/NodePromotionStrategy	\"#	Y^_#MODEL_ORDER_LEFT_TO_RIGHT	Yab#MODEL_ORDER_RIGHT_TO_LEFT
de)precalculateAndSetInformation
gh)'precalculateAndSetInformationModelOrder	NjkR&LAYERING_NODE_PROMOTION_MAX_ITERATIONSmjava/lang/Integer
lopqintValue()Istuapply#()Lcom/google/common/base/Function;
w'x()[I
Yz{qordinal
}~promotionMagic$(Lcom/google/common/base/Function;)V	Y??#NO_BOUNDARY	????java/util/List??iterator()Ljava/util/Iterator;???java/util/Iterator??next()Ljava/lang/Object;
???java/lang/Math??max(II)I????hasNext()Z	?	Y??#NIKOLOV	??java/lang/Double
????doubleValue()D
????(DD)D	?	Y??#
NIKOLOV_PIXEL	?@Y
????ceil(D)D?t?$(I)Lcom/google/common/base/Function;	??
???modelOrderNodePromotion(Z)V
???setNewLayering-(Lorg/eclipse/elk/alg/layered/graph/LGraph;)V
???setNewLayeringModelOrderF??)donelayeredGraphprogressMonitor/Lorg/eclipse/elk/core/util/IElkProgressMonitor;promoteUntilfunFunction!Lcom/google/common/base/Function;newMaxWidthmarthaLjava/lang/Integer;newMaxWidthPixeldonnaLjava/lang/Double;
promoteUntilN
promoteUntilDLocalVariableTypeTable~Lcom/google/common/base/Function;Ljava/lang/Boolean;>;
StackMapTable?com/google/common/base/Function	N??RSPACING_NODE_NODE	? 	N??R SPACING_EDGE_NODE_BETWEEN_LAYERS	?!
T???	getLayers()Ljava/util/List;???qsize	?
???com/google/common/collect/Lists??newArrayList*([Ljava/lang/Object;)Ljava/util/ArrayList;?'org/eclipse/elk/alg/layered/graph/Layer	???id
????getNodes'org/eclipse/elk/alg/layered/graph/LNode	?	
??()Ljava/util/ArrayList;	
	
T?
getLayer+()Lorg/eclipse/elk/alg/layered/graph/Layer;
getSize%()Lorg/eclipse/elk/core/math/KVector;	!org/eclipse/elk/core/math/KVectory
getIncomingEdges()Ljava/lang/Iterable;
 "!#com/google/common/collect/Iterables?#(Ljava/lang/Iterable;)I
%&getOutgoingEdges?()*add(Ljava/lang/Object;)Z
l,-.valueOf(I)Ljava/lang/Integer;?012set'(ILjava/lang/Object;)Ljava/lang/Object;
?4-5(D)Ljava/lang/Double;layerIDnodeIDlayer)Lorg/eclipse/elk/alg/layered/graph/Layer;node)Lorg/eclipse/elk/alg/layered/graph/LNode;dummyBaggageincoming	outcoming	layerSizelayerSizePixelinDegree	outDegree
nodesNdummies?EFGsort(Ljava/util/Comparator;)V
:IJKputAll)(Ljava/lang/Comparable;Ljava/util/List;)VnodeIdlayerIdleftToRightZmodelOrderComparatorRjava/util/Comparator
:TUVkeySet()Ljava/util/Set;X?Y
java/util/Set
:[\]	getValues.(Ljava/lang/Comparable;)Ljava/util/LinkedList;
_a`java/util/LinkedListbcget(I)Ljava/lang/Object;	egf6org/eclipse/elk/alg/layered/options/InternalPropertieshRMODEL_ORDER
jklhasProperty/(Lorg/eclipse/elk/graph/properties/IProperty;)Z
:nopisMaximalKey(Ljava/lang/Comparable;)Z
:rspisMinimalKey
V
_?
_?
xyzgetType4()Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType;	|~}0org/eclipse/elk/alg/layered/graph/LNode$NodeType?LABEL2Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType;???java/lang/Iterable?'org/eclipse/elk/alg/layered/graph/LEdge
????	getSource+()Lorg/eclipse/elk/alg/layered/graph/LPort;
???'org/eclipse/elk/alg/layered/graph/LPort??getNode+()Lorg/eclipse/elk/alg/layered/graph/LNode;
????	getTarget
??*equals
:???getKey*(Ljava/lang/Object;)Ljava/lang/Comparable;	|???NORMAL
???promoteNodeByModelOrderE(Lorg/eclipse/elk/alg/layered/graph/LNode;Z)Ljava/util/LinkedHashSet;
???java/util/LinkedHashSet
???*remove
????addAll(Ljava/util/Collection;)Z
????isEmptysomethingChangedcurrentLayerIdcurrentLayerLjava/util/LinkedList;	nodeIndexshallBePromotedotherNodeIndex	otherNodenextLayerId	nextLayermodelOrderAllowsPromotionpromoteThroughDummyLayercontainsLabels
nextLayerNodenodeConnectedToNextLayer
connectedNodenodesToPromoteLjava/util/LinkedHashSet;
nodeToPromoteALjava/util/LinkedList;DLjava/util/LinkedHashSet;p(Lorg/eclipse/elk/alg/layered/graph/LNode;Z)Ljava/util/LinkedHashSet;
:???put+(Ljava/lang/Comparable;Ljava/lang/Object;)V
?.
?(
oldLayerIdedge)Lorg/eclipse/elk/alg/layered/graph/LEdge;nextNode?(Lcom/google/common/base/Function;Ljava/lang/Boolean;>;)V
???java/util/Arrays??copyOf([II)[I
???promoteNodeK(Lorg/eclipse/elk/alg/layered/graph/LNode;)Lorg/eclipse/elk/core/util/Pair;
???org/eclipse/elk/core/util/Pair??	getSecond?java/lang/Boolean
????booleanValue
????getFirst
????+(Ljava/lang/Iterable;)Ljava/util/ArrayList;
????ofF(Ljava/lang/Object;Ljava/lang/Object;)Lorg/eclipse/elk/core/util/Pair;??t?&(Ljava/lang/Object;)Ljava/lang/Object;funky
promotions
promotionFlagiterationCounterreducedDummieslayeringBackupdummyBackupheightBackupcurrentWidthBackupcurrentWidthPixelBackup
promotionPair Lorg/eclipse/elk/core/util/Pair;HLorg/eclipse/elk/core/util/Pair;s(Lorg/eclipse/elk/alg/layered/graph/LNode;)Lorg/eclipse/elk/core/util/Pair;?a
?-(Z)Ljava/lang/Boolean;
?/'(Ljava/lang/Object;Ljava/lang/Object;)VmaxWidthNotExceeded	dummydiffnodeLayerPosnodeSizedummiesBuiltdummiesReduced
masterNode	promotion
?/?
setLayer,(Lorg/eclipse/elk/alg/layered/graph/Layer;)V????)?)clear??layListi	laLaLayerlayerItLjava/util/Iterator;possiblyEvilLayer;Ljava/util/List;?Ljava/util/Iterator;X$%&stream()Ljava/util/stream/Stream;(*)java/util/stream/Stream+&sorted
-/.java/util/stream/Collectors01toList()Ljava/util/stream/Collector;(345collect0(Ljava/util/stream/Collector;)Ljava/lang/Object;
_?	layerList
layerIndex
layerNodesnewLayerD(Ljava/lang/Object;Lorg/eclipse/elk/core/util/IElkProgressMonitor;)V
=AB	?'
YABCvalues>()[Lorg/eclipse/elk/alg/layered/options/NodePromotionStrategy;	YEF#DUMMYNODE_PERCENTAGE	YHI#NIKOLOV_IMPROVED	YKL#NIKOLOV_IMPROVED_PIXEL	YNO#NODECOUNT_PERCENTAGE	YQR#NONETjava/lang/NoSuchFieldErrorlambda$05(Lorg/eclipse/elk/core/util/Pair;)Ljava/lang/Boolean;pairHLorg/eclipse/elk/core/util/Pair;lambda$16(ILorg/eclipse/elk/core/util/Pair;)Ljava/lang/Boolean;lambda$2
SourceFileNodePromotion.javaiLjava/lang/Object;Lorg/eclipse/elk/core/alg/ILayoutProcessor;BootstrapMethods
acb"java/lang/invoke/LambdaMetafactorydemetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;`?
iUVhV?
nYZmV?
s[ZrVInnerClassesx%java/lang/invoke/MethodHandles$Lookupzjava/lang/invoke/MethodHandlesLookupNodeTypeNestMembers!	
	

				 !"#$%	&J'()*=?+Y?-?0?2Y?4?5?7E
R]8/)*B*?9*?:Y??r:?v*?[?y.?E
1:C??E5=*?|?*?|?*???[*?|6*????:????l:?n??6?????*????*???[*?|??*???[*?|9*????:	?	????:????9	?????*????h*???[*?|?X*???h??o???6*???|?8*??h??o???6	*	???|?*???*???	*?|*?[?]?*?[?`?*+?§*+??,???7?5?
???'?1?5?8?<?M?T??????????????????????????????????%?1?;?E?L?R?U?g?r?u???????????????????????????8p??@??
???M??T~???I????J?%??g???	?T~???q8?S??TF???"TF??	TF???#TF?e)*u1**?K?߶S??????**?K??S??????**?K?????*??d<=*??*??**??l???**??????*?K???:?C????N-??-????:????:?????????????*?
??*??*??	*??>*??*?K?
:?5????:??<66????69	????:?????:?=*?????O	??*??cc9	??6
?$?6*?2
dO*?2
O*?2O
`6`6
?*??'W*?	?'W????gd>`6	?*??kc9	*???+?/W*??	?3?/W**??????**??	????*Y??`??`>????DZ7?7(8?AFKYg? ?!?"?#?!?%??(?)?*?+?,?-?012	345768<9J:\<f=p>}??@?A?B?C?D?F?7?I?J?L?O?P?Q
RS!T&00W8?1?@??6A?7?589?	:;?N<&89	=>?@	6?:;fVA
pLB?UC??	?x????????;??5?????????????i?h)*?*?:Y??	?0??5:*?K?
:?/????:???D*?=???+???H????ͱ7N_`
ab+c0dJePfSd]h`bjlzn?m?o?p?q?o?s8R??@
?L?M+589J	:;zRNO?CP? 89??CP
?d
? ????????@?
BQ?
Q?+??*?==?*?=?S?Wd?>?y*?=?+?Z:6?P?^?:?d?i??3*?=?+?m?
*?[?]?*?=?+?q?*?[?`??66?f?^?:		?d?i?L?"?d?t?l?n	?d?t?l?n?&?%?d?t?l?n	?d?t?l?n?6??u???????	`?d6*?=?+?Z:	6
66	?v:?e???:

?d?i?j
???A
?*
?d?t?l?n?d?t?l?n??+?'
?d?t?l?n?d?t?l?n???6
6??
????
?w?{??6? 
???????????:?
?$??????????:????? 
?$??????????:?
???????????:?%*?=???l?n*?=???l?nd?"*?=???l?n*?=???l?nd?6?????????? ?$??????????:
????????????:
?%*?=
???l?n*?=???l?nd?"*?=???l?n*?=
???l?nd?
?w???6
??@*??:
?'
?????:
??W
*????W
????ׄ?=??u?????`>?
????*?=?S?W??r??R?7bX}???+?1?=?H?K?Y?c?q?{?~?????????????????????????????"?8?C?P?V?f?r?z?}????????????????????????????? ?#?%?(?=?@?B?h??????????????????&?1?4?>?G?J?Y?a?n?v?y?{?????????8???@?NO??O??+]??.Z?=>:;???O?p??T?;	p?b??	_?O
\?O"Y?O8V?;
??;???;%?;BL?;??;
?W?;
G4??
Y?;? +]??b??	G4??
?3,?@??_???9"??	B?"__??L__?Cb?__?8?*?%^?__??4
__?%^?	??#?_??
???	?*??*?=+???l?n>?*?=`?++?ħ*?=d?++?Ļ?Y??:?
+?$?+???:?F????:?????:?
????:*?=??*?=+?????W??????7>	!
$2;`dnq{???8R??@?:;?NO??;i??`7??n?;{?;?;i???[?$
??C??	???????	???~	?*[G66*??*?????:*??6*??6*??:	*??:
=*???:?????:*??:
6*?[???
*?[???
???޶?6
???l?n?f?a?*??*?????:*Y??
???l?n`??*??d`6*??
???l?n`6*??6*????:	*????:
?-*??ϵ?*??*	???*
???*??????&??#+?+?+????޶???>???7?$+,./0 1&2,5.7H8P=S>]?g@tD?E?F?G?H?I?J?K?L?M?N?O?PQ	R7UV [<VB]F_8?G?@G??.?B?OD?A?3?-? '?&!?	,?
H?:;P???
S?tO?*G??&!?	,?
P???
???,?????
??????*???????p?)
??????0????@??	?*?=>*??+?.6+??*??c9*?+?2.6*??*?????l?nd`?+?/W*??*????????g?*??kc?3?/W?*??-*Y??`??*???+?'W*???3?'W?a*?+?2.6*??*?????l?n`d?+?/W*??*????????c?*??kg?3?/W*?[???5*?????l?n*???[*??d???l?n*???A*?[???9*????????*????*??d??????*????=+???:	?V	????:????:
*??
?.?1*
??:???l?n`>????޶???=	?????*??+?O*?+?2.`>??Y?+???7?%qrstu*zO{i|u{{~?????????????????	???1?K?U?n?????????????????????8p?@:;O	*?
?Q?G???=;
?&
???&
??f	???];=?
	??P???@?	???*???M>?$??Y+?:*??d??,?'W?*????*?	??:?)???N-,*??*??-?.d??????????,??N?!-????:????	-?-?????+??+??,?W?7J??	???'?2?K?f?p?w?z?????????????8R??@??
?,9K:;w?? 9??!w?"?3?	? ?T??%?T????*?
??M+??*?=?S?#?'?,?2??N-??:?f???l:*?=?Z:?6?G??Y+?:,?'W?n???v:	?	???:?	??????????+??,?W?7>??
?*?A?L?T?^?g?q???????????8R??@??
?7*?UAW8?LL9?^::9?:;? ?7!*?ULL9??T?5T????E
T??l?_???	T???AA;**
*+?T,?Y??W?@??
K*?D?yO?W*?]?y	O?W*?`?y
O?W*???yO?W*?G?yO?W*?J?yO?W*???yO?W*?M?yO?W*?P?yO?W*???yO?W*Y?>?
S(+S,69S:CFSGPSST]`SajmSnx{S|??S???S7C8?AH???SLSLSKSKSKSKSLSKSLS
UV*A??7?8W??WX
YZ*^+???l?n????7?8W??WX?@
[Z*^+???l?n????7?8W??WX?@\]	^_ fgjkflopfqtuv"wy{||@+2}+2




© 2015 - 2024 Weber Informatics LLC | Privacy Policy