org.eclipse.elk.alg.layered.p2layers.BreadthFirstModelOrderLayerer.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-epl Show documentation
Show all versions of plantuml-epl Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
???? 7
Borg/eclipse/elk/alg/layered/p2layers/BreadthFirstModelOrderLayerer java/lang/Object %org/eclipse/elk/core/alg/ILayoutPhase !BASELINE_PROCESSING_CONFIGURATION 7Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; Signature ?Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; layeredGraph *Lorg/eclipse/elk/alg/layered/graph/LGraph; ()V Code
5org/eclipse/elk/core/alg/LayoutProcessorConfiguration create 9()Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; )org/eclipse/elk/alg/layered/LayeredPhases P1_CYCLE_BREAKING +Lorg/eclipse/elk/alg/layered/LayeredPhases; Forg/eclipse/elk/alg/layered/intermediate/IntermediateProcessorStrategy ! 'EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER HLorg/eclipse/elk/alg/layered/intermediate/IntermediateProcessorStrategy;
# $ % addBefore {(Ljava/lang/Enum;Lorg/eclipse/elk/core/alg/ILayoutProcessorFactory;)Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; ' ( P2_LAYERING * + ! LAYER_CONSTRAINT_PREPROCESSOR - . P3_NODE_ORDERING 0 1 ! LAYER_CONSTRAINT_POSTPROCESSOR 3 LineNumberTable LocalVariableTable
8 6 this DLorg/eclipse/elk/alg/layered/p2layers/BreadthFirstModelOrderLayerer; getLayoutProcessorConfiguration c(Lorg/eclipse/elk/alg/layered/graph/LGraph;)Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; ?(Lorg/eclipse/elk/alg/layered/graph/LGraph;)Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration; graph process \(Lorg/eclipse/elk/alg/layered/graph/LGraph;Lorg/eclipse/elk/core/util/IElkProgressMonitor;)V B "Breadth first model order layering D F E -org/eclipse/elk/core/util/IElkProgressMonitor G H begin (Ljava/lang/String;F)Z J L java/util/ArrayList
K 8
O Q P (org/eclipse/elk/alg/layered/graph/LGraph R S getLayerlessNodes ()Ljava/util/List; U W V java/util/List X Y iterator ()Ljava/util/Iterator; [ ] \ java/util/Iterator ^ _ next ()Ljava/lang/Object; a 'org/eclipse/elk/alg/layered/graph/LNode
` c d e getType 4()Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType; g i h 0org/eclipse/elk/alg/layered/graph/LNode$NodeType j k NORMAL 2Lorg/eclipse/elk/alg/layered/graph/LNode$NodeType; U m n o add (Ljava/lang/Object;)Z [ q r s hasNext ()Z u v w compare ()Ljava/util/Comparator;
y { z java/util/Collections | } sort )(Ljava/util/List;Ljava/util/Comparator;)V 'org/eclipse/elk/alg/layered/graph/Layer
~ ? 6 ? -(Lorg/eclipse/elk/alg/layered/graph/LGraph;)V
O ? ? S getLayers
` ? ? ? setLayer ,(Lorg/eclipse/elk/alg/layered/graph/Layer;)V
` ? ? ? getIncomingEdges ()Ljava/lang/Iterable; ? W ? 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;
` ? ? ? getLayer +()Lorg/eclipse/elk/alg/layered/graph/Layer; g ? ? k LABEL U ? ? clear
~ ? ? S getNodes U ? ? s isEmpty U ? ? ? removeAll (Ljava/util/Collection;)Z ~ ? ? ? id I D ? ? done thelayeredGraph monitor /Lorg/eclipse/elk/core/util/IElkProgressMonitor; realNodes Ljava/util/List; node )Lorg/eclipse/elk/alg/layered/graph/LNode; firstNode Z currentLayer )Lorg/eclipse/elk/alg/layered/graph/Layer; currentDummyLayer edge )Lorg/eclipse/elk/alg/layered/graph/LEdge; toDelete layer layerId LocalVariableTypeTable ;Ljava/util/List; ;Ljava/util/List;
StackMapTable D(Ljava/lang/Object;Lorg/eclipse/elk/core/util/IElkProgressMonitor;)V
? ? @ K(Ljava/lang/Object;)Lorg/eclipse/elk/core/alg/LayoutProcessorConfiguration;
? ; < lambda$0 U(Lorg/eclipse/elk/alg/layered/graph/LNode;Lorg/eclipse/elk/alg/layered/graph/LNode;)I ? ? ? 6org/eclipse/elk/alg/layered/options/InternalProperties ? ? MODEL_ORDER ,Lorg/eclipse/elk/graph/properties/IProperty;
` ? ? ? hasProperty /(Lorg/eclipse/elk/graph/properties/IProperty;)Z
` ? ? ? getProperty @(Lorg/eclipse/elk/graph/properties/IProperty;)Ljava/lang/Object; ? java/lang/Integer
? ? ? ? intValue ()I
? ? v ? (II)I ? .org/eclipse/elk/core/UnsupportedGraphException ? PThe BF model order layer assigner requires all real nodes to have a model order.
? ? 6 ? (Ljava/lang/String;)V n1 n2
SourceFile "BreadthFirstModelOrderLayerer.java ?Ljava/lang/Object;Lorg/eclipse/elk/core/alg/ILayoutPhase; BootstrapMethods
? ? ? "java/lang/invoke/LambdaMetafactory ? ? metafactory ?(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; ? '(Ljava/lang/Object;Ljava/lang/Object;)I
? ? ? InnerClasses %java/lang/invoke/MethodHandles$Lookup
java/lang/invoke/MethodHandles Lookup NodeType 1
^ "? ? ? ? "? &? )? "? ,? /? "? 2? 4 " . / 0 / 1 2 - ! 2 5 6 / *? 7? 4 * 5 9 : ; <