package layered
Import Path
github.com/d2lang/elk-go/internal/layered (on go.dev )
Dependency Relation
imports 14 packages , and imported by 16 packages
Package-Level Type Names (total 73)
/* sort by: alphabet | popularity */
type LEdgeID uint32 (basic type)
Methods (only one )
( LEdgeID) Index () int
As Outputs Of (at least 7 )
func (*LGraphArena ).AddEdge () LEdgeID
func (*LGraphArena ).NodeConnectedEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).NodeIncomingEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).NodeOutgoingEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).PortConnectedEdges (portID LPortID ) []LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitEdgeAtDummy (arena *LGraphArena , edgeID LEdgeID , dummyID LNodeID ) LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertDummies (arena *LGraphArena , graphID LGraphID , originalEdge LEdgeID , offsetFirstInLayerDummy int ) []LEdgeID
As Inputs Of (at least 16 )
func LEdgeOrigin (id LEdgeID ) Origin
func (*LGraphArena ).Edge (id LEdgeID ) *LEdge
func (*LGraphArena ).EdgeIsInLayer (edgeID LEdgeID ) bool
func (*LGraphArena ).EdgeIsSelfLoop (edgeID LEdgeID ) bool
func (*LGraphArena ).EdgeOtherNode (edgeID LEdgeID , nodeID LNodeID ) LNodeID
func (*LGraphArena ).EdgeOtherPort (edgeID LEdgeID , portID LPortID ) LPortID
func (*LGraphArena ).EdgeSourceNode (edgeID LEdgeID ) LNodeID
func (*LGraphArena ).EdgeTargetNode (edgeID LEdgeID ) LNodeID
func (*LGraphArena ).ReverseEdge (graphID LGraphID , edgeID LEdgeID , adaptPorts bool )
func (*LGraphArena ).SetEdgeSource (edgeID LEdgeID , portID *LPortID )
func (*LGraphArena ).SetEdgeTarget (edgeID LEdgeID , portID *LPortID )
func (*LGraphArena ).SetEdgeTargetAt (edgeID LEdgeID , portID *LPortID , index int )
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitEdgeAtDummy (arena *LGraphArena , edgeID LEdgeID , dummyID LNodeID ) LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertDummies (arena *LGraphArena , graphID LGraphID , originalEdge LEdgeID , offsetFirstInLayerDummy int ) []LEdgeID
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtEdgeLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , edgeID LEdgeID , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAligner ).VerticalAlignment (layout *p4nodes .BKAlignedLayout , markedEdges map[LEdgeID ]bool )
type LGraphArena (struct)
LGraphArena gives Go stable identities without pointers into growing slices.
Arena order is Java object creation order and must never be reconstructed
from a map.
Fields (total 6 )
Edges []LEdge
Graphs []LGraph
Labels []LLabel
Layers []Layer
Nodes []LNode
Ports []LPort
Methods (total 47 )
(*LGraphArena) AddEdge () LEdgeID
(*LGraphArena) AddGraph () LGraphID
(*LGraphArena) AddLabel (text string ) LLabelID
(*LGraphArena) AddLayer (graphID LGraphID ) LayerID
AddLayer is new Layer(graph); it deliberately does not append the layer to
graph.Layers. This mirrors the subtle Java constructor behavior.
(*LGraphArena) AddLayerToGraph (graphID LGraphID ) LayerID
(*LGraphArena) AddNode (graphID LGraphID ) LNodeID
AddNode is new LNode(graph); callers add the node to graph.LayerlessNodes
explicitly, just as the Java importer does.
(*LGraphArena) AddPort () LPortID
(*LGraphArena) CachePortSides (nodeID LNodeID )
(*LGraphArena) CreateExternalPortDummy (propertyHolder *basegraph .PropertyMap , portConstraints PortConstraints , portSide PortSide , netFlow int , portNodeSize *geometry .Point , portPosition *geometry .Point , portSize geometry .Point , layoutDirection Direction , graphID LGraphID ) LNodeID
CreateExternalPortDummy is the arena-backed counterpart of
LGraphUtil.createExternalPortDummy. The caller deliberately decides when to
add the returned node to Graph.LayerlessNodes, matching the Java helper.
(*LGraphArena) Edge (id LEdgeID ) *LEdge
(*LGraphArena) EdgeIsInLayer (edgeID LEdgeID ) bool
(*LGraphArena) EdgeIsSelfLoop (edgeID LEdgeID ) bool
(*LGraphArena) EdgeOtherNode (edgeID LEdgeID , nodeID LNodeID ) LNodeID
(*LGraphArena) EdgeOtherPort (edgeID LEdgeID , portID LPortID ) LPortID
(*LGraphArena) EdgeSourceNode (edgeID LEdgeID ) LNodeID
(*LGraphArena) EdgeTargetNode (edgeID LEdgeID ) LNodeID
(*LGraphArena) ExternalPortPosition (graphID LGraphID , dummyID LNodeID , portWidth, portHeight float64 ) geometry .Point
ExternalPortPosition calculates an external port's top-left position from
its laid-out dummy and updates the dummy's border coordinate, exactly as
LGraphUtil.getExternalPortPosition does.
(*LGraphArena) Graph (id LGraphID ) *LGraph
(*LGraphArena) GraphActualSize (graphID LGraphID ) geometry .Point
(*LGraphArena) GraphAllNodes (graphID LGraphID ) []LNodeID
(*LGraphArena) InvalidatePortSideCache (nodeID LNodeID )
(*LGraphArena) IsDescendant (childID, parentID LNodeID ) bool
(*LGraphArena) Label (id LLabelID ) *LLabel
(*LGraphArena) Layer (id LayerID ) *Layer
(*LGraphArena) LayerIndex (layerID LayerID ) int
(*LGraphArena) Node (id LNodeID ) *LNode
(*LGraphArena) NodeBorderToContentCoordinates (nodeID LNodeID , horizontal, vertical bool )
(*LGraphArena) NodeConnectedEdges (nodeID LNodeID ) []LEdgeID
(*LGraphArena) NodeGraph (nodeID LNodeID ) LGraphID
(*LGraphArena) NodeIncomingEdges (nodeID LNodeID ) []LEdgeID
(*LGraphArena) NodeIndexInLayer (nodeID LNodeID ) int
(*LGraphArena) NodeOutgoingEdges (nodeID LNodeID ) []LEdgeID
(*LGraphArena) NodePortSideView (nodeID LNodeID , side PortSide ) []LPortID
(*LGraphArena) NodePortsOnSide (nodeID LNodeID , side PortSide ) []LPortID
(*LGraphArena) Port (id LPortID ) *LPort
(*LGraphArena) PortConnectedEdges (portID LPortID ) []LEdgeID
(*LGraphArena) ProvideCollectorPort (graphID LGraphID , nodeID LNodeID , portType PortType , side PortSide ) LPortID
(*LGraphArena) RemoveNodeFromGraph (nodeID LNodeID )
(*LGraphArena) ResizeNode (nodeID LNodeID , newSize geometry .Point , movePorts, moveLabels bool )
ResizeNode mirrors LGraphUtil.resizeNode. ELK intentionally performs its
ratio and delta calculations as float32 even though coordinates are doubles.
(*LGraphArena) ReverseEdge (graphID LGraphID , edgeID LEdgeID , adaptPorts bool )
ReverseEdge mirrors LEdge.reverse. Reversal updates adjacency in the same
sequence as Java, toggles REVERSED, reverses bend points, and swaps HEAD and
TAIL label placement. Collector-port adaptation is used by cycle breaking.
(*LGraphArena) SetEdgeSource (edgeID LEdgeID , portID *LPortID )
(*LGraphArena) SetEdgeTarget (edgeID LEdgeID , portID *LPortID )
(*LGraphArena) SetEdgeTargetAt (edgeID LEdgeID , portID *LPortID , index int )
(*LGraphArena) SetNodeLayer (nodeID LNodeID , layerID *LayerID )
(*LGraphArena) SetNodeLayerAt (nodeID LNodeID , layerID *LayerID , index int )
(*LGraphArena) SetPortNode (portID LPortID , nodeID *LNodeID )
(*LGraphArena) SetPortSide (portID LPortID , side PortSide )
As Outputs Of (at least 2 )
func NewLGraphArena () *LGraphArena
func (*ElkGraphImporter ).ImportGraph (parent basegraph .NodeID ) (*LGraphArena , LGraphID , error )
As Inputs Of (at least 207 )
func BasePipelineConfiguration (arena *LGraphArena , graphID LGraphID ) PipelineConfiguration
func ConfigureGraphProperties (arena *LGraphArena , graphID LGraphID )
func HorizontalSpacing (arena *LGraphArena , first, second LNodeID ) float64
func HorizontalSpacingByType (arena *LGraphArena , graphID LGraphID , first, second NodeType ) float64
func IndividualOrDefault (arena *LGraphArena , nodeID LNodeID , property *basegraph .Property [float64 ]) float64
func VerticalSpacing (arena *LGraphArena , first, second LNodeID ) float64
func VerticalSpacingByType (arena *LGraphArena , graphID LGraphID , first, second NodeType ) float64
func (*CompoundGraphPostprocessor ).Process (arena *LGraphArena , topGraph LGraphID ) error
func (*CompoundGraphPreprocessor ).Process (arena *LGraphArena , topGraph LGraphID ) error
func ConfiguredProcessor .Process (arena *LGraphArena , graphID LGraphID ) error
func ConfiguredProcessor .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func (*ElkGraphLayoutTransferrer ).ApplyLayout (arena *LGraphArena , topGraph LGraphID ) error
func LayoutProcessor .Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/components.MakeLayerless (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Combine (arena *LGraphArena , components []LGraphID , target LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Split (arena *LGraphArena , graphID LGraphID ) ([]LGraphID , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateCommentNodeMargins (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateInnermostNodeMargins (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateLayerSizesAndGraphHeight (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CompactHorizontally (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.InsertLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.JoinLongEdgeAt (arena *LGraphArena , dummyID LNodeID , addUnnecessary bool )
func github.com/d2lang/elk-go/internal/layered/intermediate.JoinLongEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNode (arena *LGraphArena , portID LPortID ) (LNodeID , bool , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNodePreprocessing (arena *LGraphArena , nodeID LNodeID ) (map[LNodeID ]int , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.ManageEndNodePortLabels (_ *LGraphArena , _ LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.MergeHyperedgeDummies (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PositionHierarchicalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PositionInteractiveExternalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessComments (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessNorthSouthPorts (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessPartitions (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessSelfLoops (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PrepareNodePlacementRepeat (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessComments (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessNorthSouthPorts (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessPartitions (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessSelfLoops (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessConstraints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHierarchicalPortConstraints (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHighDegreeNodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHypernodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessInLayerConstraints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessInvertedPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLabelAndNodeSizes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLayerConstraintsAfterLayering (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLayerConstraintsBeforeLayering (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessPartitionsBeforeLayering (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessPortSides (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessSemiInteractiveCrossing (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PromoteNodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RemoveLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ResizeHierarchicalNode (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.RestoreReversedEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RestoreSelfLoopPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ReverseConstraintEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RouteHierarchicalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.RouteSelfLoops (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SelectLabelSides (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SetPortSide (arena *LGraphArena , portID LPortID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SizeHierarchicalPortDummies (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SortByInputModel (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SortEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SortPortLists (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitEdgeAtDummy (arena *LGraphArena , edgeID LEdgeID , dummyID LNodeID ) LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitLongEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SwitchLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.TransformGraph (arena *LGraphArena , graphID LGraphID , mode intermediate .GraphTransformMode )
func github.com/d2lang/elk-go/internal/layered/intermediate.(*HyperedgeDummyMerger ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.(*LayerConstraintPostprocessor ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.(*LayerConstraintPreprocessor ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.IndividualOrInherited (arena *LGraphArena , nodeID LNodeID , property basegraph .Property [float64 ]) float64
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.Install (arena *LGraphArena , nodeID LNodeID ) (*loops .Holder , error )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.NeedsProcessing (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*Edge ).IsInline (arena *LGraphArena ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*HyperLoop ).AddEdge (arena *LGraphArena , edge *loops .Edge )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*HyperLoop ).ComputePortsPerSide (arena *LGraphArena ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*Labels ).Add (arena *LGraphArena , ids []LLabelID )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*Labels ).ApplyPlacement (arena *LGraphArena , offset geometry .Point )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/ordering.AssignPortSides (arena *LGraphArena , holder *loops .Holder ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/ordering.RestorePorts (arena *LGraphArena , holder *loops .Holder ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.AssignRoutingSlots (arena *LGraphArena , holder *loops .Holder )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.DetermineLoopRoutes (arena *LGraphArena , holder *loops .Holder ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.PlaceLabels (arena *LGraphArena , holder *loops .Holder ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.RouteOrthogonal (arena *LGraphArena , holder *loops .Holder )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.RoutePolyline (arena *LGraphArena , holder *loops .Holder )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/routing.RouteSpline (arena *LGraphArena , holder *loops .Holder )
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.NewNodeComparator (arena *LGraphArena , previousLayer []LNodeID , ordering OrderingStrategy , longEdgeOrder preserveorder .LongEdgeOrderingStrategy , beforePorts bool ) *preserveorder .NodeComparator
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.NewPortComparator (arena *LGraphArena , previousLayer []LNodeID , ordering OrderingStrategy , targetNodeModelOrder map[LNodeID ]int , portModelOrder bool ) *preserveorder .PortComparator
func github.com/d2lang/elk-go/internal/layered/intermediate/unzipping.AlternateLayers (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertDummies (arena *LGraphArena , graphID LGraphID , originalEdge LEdgeID , offsetFirstInLayerDummy int ) []LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.IsBreakingPointEnd (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.IsBreakingPointStart (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.NewGraphStats (arena *LGraphArena , graphID LGraphID ) *wrapping .GraphStats
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.ProcessBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.RemoveBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.WrapSingleEdgeGraph (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DepthFirstCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DepthFirstCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DFSNodeOrderCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DFSNodeOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*GreedyCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*GreedyCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*InteractiveCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*InteractiveCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*ModelOrderCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*ModelOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*SCCNodeTypeCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*SCCNodeTypeCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*CoffmanGrahamLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*CoffmanGrahamLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*InteractiveLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*InteractiveLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*LongestPathLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*LongestPathLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*MinWidthLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*MinWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*NetworkSimplexLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*NetworkSimplexLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*StretchWidthLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*StretchWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.GreedySwitchIntermediateForGraph (arena *LGraphArena , graphID LGraphID ) (IntermediateProcessorStrategy , bool )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeAllCrossingsCounter (counter *p3order .AllCrossingsCounter , arena *LGraphArena , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeBarycenterPortDistributor (distributor *p3order .BarycenterPortDistributor , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeForsterConstraintResolver (resolver *p3order .ForsterConstraintResolver , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeGreedyPortDistributor (distributor *p3order .GreedyPortDistributor , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.NewBarycenterHeuristic (arena *LGraphArena , resolver *p3order .ForsterConstraintResolver , random *javacompat .Random , distributor *p3order .BarycenterPortDistributor ) *p3order .BarycenterHeuristic
func github.com/d2lang/elk-go/internal/layered/p3order.NewCrossingMatrixFiller (arena *LGraphArena , crossMinType p3order .CrossMinType , order [][]LNodeID , freeLayerIndex int , side p3order .CrossingCountSide ) *p3order .CrossingMatrixFiller
func github.com/d2lang/elk-go/internal/layered/p3order.NewForsterConstraintResolver (arena *LGraphArena , order [][]LNodeID ) *p3order .ForsterConstraintResolver
func github.com/d2lang/elk-go/internal/layered/p3order.NewGraphInfoHolder (arena *LGraphArena , graphID LGraphID , crossMinType p3order .CrossMinType , graphs []*p3order .GraphInfoHolder , random *javacompat .Random ) (*p3order .GraphInfoHolder , error )
func github.com/d2lang/elk-go/internal/layered/p3order.NewGreedySwitchHeuristic (arena *LGraphArena , crossMinType p3order .CrossMinType , holder *p3order .GraphInfoHolder ) *p3order .GreedySwitchHeuristic
func github.com/d2lang/elk-go/internal/layered/p3order.NewNorthSouthEdgeNeighbouringNodeCrossingsCounter (arena *LGraphArena , layer []LNodeID ) *p3order .NorthSouthEdgeNeighbouringNodeCrossingsCounter
func github.com/d2lang/elk-go/internal/layered/p3order.NewSweepCopy (arena *LGraphArena , nodeOrder [][]LNodeID ) *p3order .SweepCopy
func github.com/d2lang/elk-go/internal/layered/p3order.NewSwitchDecider (arena *LGraphArena , freeLayerIndex int , order [][]LNodeID , filler *p3order .CrossingMatrixFiller , portPositions []int , holder *p3order .GraphInfoHolder , oneSided bool ) *p3order .SwitchDecider
func github.com/d2lang/elk-go/internal/layered/p3order.ProcessGreedySwitchIntermediate (arena *LGraphArena , graphID LGraphID , strategy IntermediateProcessorStrategy ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).CountAllCrossings (arena *LGraphArena , currentOrder [][]LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtEdgeLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , edgeID LEdgeID , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtPortLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).CalculatePortRanks (arena *LGraphArena , layer []LNodeID , portType PortType )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).DistributePortsWhileSweeping (arena *LGraphArena , nodeOrder [][]LNodeID , currentIndex int , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).InitAtPortLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingMatrixFiller ).GetCrossingMatrixEntry (arena *LGraphArena , upper, lower LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountCrossingsBetweenLayers (arena *LGraphArena , leftLayerNodes, rightLayerNodes []LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountCrossingsBetweenPortsInBothOrders (arena *LGraphArena , upperPort, lowerPort LPortID ) (int , int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsBetweenNodesInBothOrders (arena *LGraphArena , upperNode, lowerNode LNodeID , side PortSide ) (int , int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsOnSide (arena *LGraphArena , nodes []LNodeID , side PortSide ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountNorthSouthPortCrossingsInLayer (arena *LGraphArena , nodes []LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitForCountingBetween (arena *LGraphArena , leftLayerNodes, rightLayerNodes []LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitPortPositionsForInLayerCrossings (arena *LGraphArena , nodes []LNodeID , side PortSide ) []LPortID
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).SwitchNodes (arena *LGraphArena , wasUpperNode, wasLowerNode LNodeID , side PortSide )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).SwitchPorts (arena *LGraphArena , topPort, bottomPort LPortID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*ForsterConstraintResolver ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*ForsterConstraintResolver ).ProcessConstraints (arena *LGraphArena , nodes *[]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedyPortDistributor ).DistributePortsWhileSweeping (arena *LGraphArena , order [][]LNodeID , currentIndex int , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedyPortDistributor ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedySwitchHeuristic ).InitAtLayerLevel (arena *LGraphArena , layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*InteractiveCrossingMinimizer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*InteractiveCrossingMinimizer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).ProcessHierarchy (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).InitAtLayerLevel (arena *LGraphArena , layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).UseBottomUp (arena *LGraphArena , graphID LGraphID , parent *LNodeID , crossMinDeterministic bool , order [][]LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*NoCrossingMinimizer ).Process (*LGraphArena , LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*NoCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*NorthSouthEdgeNeighbouringNodeCrossingsCounter ).CountCrossings (arena *LGraphArena , upper, lower LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*SweepCopy ).TransferNodeAndPortOrdersToGraph (arena *LGraphArena , graphID LGraphID , setPortConstraints bool )
func github.com/d2lang/elk-go/internal/layered/p3order.(*SwitchDecider ).DoesSwitchReduceCrossings (arena *LGraphArena , upperIndex, lowerIndex int ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*SwitchDecider ).NotifyOfSwitch (arena *LGraphArena , upper, lower LNodeID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.BuildNeighborhoodInformation (arena *LGraphArena , graphID LGraphID ) *p4nodes .NeighborhoodInformation
func github.com/d2lang/elk-go/internal/layered/p4nodes.NewBKAligner (arena *LGraphArena , graphID LGraphID , info *p4nodes .NeighborhoodInformation ) *p4nodes .BKAligner
func github.com/d2lang/elk-go/internal/layered/p4nodes.NewBKCompactor (arena *LGraphArena , graphID LGraphID ) *p4nodes .BKCompactor
func github.com/d2lang/elk-go/internal/layered/p4nodes.PlaceBrandesKoepf (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CalculateDelta (arena *LGraphArena , sourceID, targetID LPortID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CheckSpaceAbove (arena *LGraphArena , blockRoot LNodeID , delta float64 , info *p4nodes .NeighborhoodInformation ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CheckSpaceBelow (arena *LGraphArena , blockRoot LNodeID , delta float64 , info *p4nodes .NeighborhoodInformation ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).LayoutSize (arena *LGraphArena ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).MaxY (arena *LGraphArena , nodeID LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).MinY (arena *LGraphArena , nodeID LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).ShiftBlock (arena *LGraphArena , rootID LNodeID , delta float64 )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKCompactor ).HorizontalCompaction (arena *LGraphArena , graphID LGraphID , info *p4nodes .NeighborhoodInformation , layout *p4nodes .BKAlignedLayout )
func github.com/d2lang/elk-go/internal/layered/p4nodes.BrandesKoepfPlacer .Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.BrandesKoepfPlacer .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*InteractiveNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*InteractiveNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*LinearSegmentsNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*LinearSegmentsNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*NetworkSimplexPlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*NetworkSimplexPlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*SimpleNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*SimpleNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*ThresholdStrategy ).CalculateThreshold (arena *LGraphArena , layout *p4nodes .BKAlignedLayout , oldThreshold float64 , blockRoot, currentNode LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*ThresholdStrategy ).PostProcess (arena *LGraphArena , info *p4nodes .NeighborhoodInformation , layout *p4nodes .BKAlignedLayout )
func github.com/d2lang/elk-go/internal/layered/p5edges.FinalizeSplineBendpoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p5edges.(*OrthogonalEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*OrthogonalEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*PolylineEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*PolylineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*SplineEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*SplineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges/orthogonal.(*Generator ).RouteEdges (arena *LGraphArena , graphID LGraphID , sourceNodes []LNodeID , sourceLayerIndex int , targetNodes []LNodeID , startPosition float64 ) int
type LGraphID uint32 (basic type)
Methods (only one )
( LGraphID) Index () int
As Outputs Of (at least 4 )
func (*ElkGraphImporter ).ImportGraph (parent basegraph .NodeID ) (*LGraphArena , LGraphID , error )
func (*LGraphArena ).AddGraph () LGraphID
func (*LGraphArena ).NodeGraph (nodeID LNodeID ) LGraphID
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Split (arena *LGraphArena , graphID LGraphID ) ([]LGraphID , error )
As Inputs Of (at least 143 )
func BasePipelineConfiguration (arena *LGraphArena , graphID LGraphID ) PipelineConfiguration
func ConfigureGraphProperties (arena *LGraphArena , graphID LGraphID )
func HorizontalSpacingByType (arena *LGraphArena , graphID LGraphID , first, second NodeType ) float64
func VerticalSpacingByType (arena *LGraphArena , graphID LGraphID , first, second NodeType ) float64
func (*CompoundGraphPostprocessor ).Process (arena *LGraphArena , topGraph LGraphID ) error
func (*CompoundGraphPreprocessor ).Process (arena *LGraphArena , topGraph LGraphID ) error
func ConfiguredProcessor .Process (arena *LGraphArena , graphID LGraphID ) error
func ConfiguredProcessor .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func (*ElkGraphLayoutTransferrer ).ApplyLayout (arena *LGraphArena , topGraph LGraphID ) error
func LayoutProcessor .Process (arena *LGraphArena , graphID LGraphID ) error
func (*LGraphArena ).AddLayer (graphID LGraphID ) LayerID
func (*LGraphArena ).AddLayerToGraph (graphID LGraphID ) LayerID
func (*LGraphArena ).AddNode (graphID LGraphID ) LNodeID
func (*LGraphArena ).CreateExternalPortDummy (propertyHolder *basegraph .PropertyMap , portConstraints PortConstraints , portSide PortSide , netFlow int , portNodeSize *geometry .Point , portPosition *geometry .Point , portSize geometry .Point , layoutDirection Direction , graphID LGraphID ) LNodeID
func (*LGraphArena ).ExternalPortPosition (graphID LGraphID , dummyID LNodeID , portWidth, portHeight float64 ) geometry .Point
func (*LGraphArena ).Graph (id LGraphID ) *LGraph
func (*LGraphArena ).GraphActualSize (graphID LGraphID ) geometry .Point
func (*LGraphArena ).GraphAllNodes (graphID LGraphID ) []LNodeID
func (*LGraphArena ).ProvideCollectorPort (graphID LGraphID , nodeID LNodeID , portType PortType , side PortSide ) LPortID
func (*LGraphArena ).ReverseEdge (graphID LGraphID , edgeID LEdgeID , adaptPorts bool )
func github.com/d2lang/elk-go/internal/layered/components.MakeLayerless (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Combine (arena *LGraphArena , components []LGraphID , target LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Combine (arena *LGraphArena , components []LGraphID , target LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/components.(*ComponentsProcessor ).Split (arena *LGraphArena , graphID LGraphID ) ([]LGraphID , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateCommentNodeMargins (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateInnermostNodeMargins (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CalculateLayerSizesAndGraphHeight (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.CompactHorizontally (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.InsertLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.JoinLongEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ManageEndNodePortLabels (_ *LGraphArena , _ LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.MergeHyperedgeDummies (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PositionHierarchicalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PositionInteractiveExternalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessComments (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessNorthSouthPorts (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessPartitions (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PostprocessSelfLoops (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PrepareNodePlacementRepeat (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessComments (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessNorthSouthPorts (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessPartitions (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PreprocessSelfLoops (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessConstraints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHierarchicalPortConstraints (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHighDegreeNodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessHypernodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessInLayerConstraints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessInvertedPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLabelAndNodeSizes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLayerConstraintsAfterLayering (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessLayerConstraintsBeforeLayering (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessPartitionsBeforeLayering (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessPortSides (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ProcessSemiInteractiveCrossing (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.PromoteNodes (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RemoveLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.ResizeHierarchicalNode (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.RestoreReversedEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RestoreSelfLoopPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.ReverseConstraintEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.RouteHierarchicalPorts (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.RouteSelfLoops (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SelectLabelSides (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SizeHierarchicalPortDummies (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SortByInputModel (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SortEndLabels (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SortPortLists (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitLongEdges (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.SwitchLabelDummies (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate.TransformGraph (arena *LGraphArena , graphID LGraphID , mode intermediate .GraphTransformMode )
func github.com/d2lang/elk-go/internal/layered/intermediate.(*HyperedgeDummyMerger ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.(*LayerConstraintPostprocessor ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate.(*LayerConstraintPreprocessor ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/intermediate/unzipping.AlternateLayers (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.InsertDummies (arena *LGraphArena , graphID LGraphID , originalEdge LEdgeID , offsetFirstInLayerDummy int ) []LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.NewGraphStats (arena *LGraphArena , graphID LGraphID ) *wrapping .GraphStats
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.ProcessBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.RemoveBreakingPoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.WrapSingleEdgeGraph (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DepthFirstCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DepthFirstCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DFSNodeOrderCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DFSNodeOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*GreedyCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*GreedyCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*InteractiveCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*InteractiveCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*ModelOrderCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*ModelOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*SCCNodeTypeCycleBreaker ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*SCCNodeTypeCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*CoffmanGrahamLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*CoffmanGrahamLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*InteractiveLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*InteractiveLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*LongestPathLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*LongestPathLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*MinWidthLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*MinWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*NetworkSimplexLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*NetworkSimplexLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*StretchWidthLayerer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p2layers.(*StretchWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.GreedySwitchIntermediateForGraph (arena *LGraphArena , graphID LGraphID ) (IntermediateProcessorStrategy , bool )
func github.com/d2lang/elk-go/internal/layered/p3order.NewGraphInfoHolder (arena *LGraphArena , graphID LGraphID , crossMinType p3order .CrossMinType , graphs []*p3order .GraphInfoHolder , random *javacompat .Random ) (*p3order .GraphInfoHolder , error )
func github.com/d2lang/elk-go/internal/layered/p3order.ProcessGreedySwitchIntermediate (arena *LGraphArena , graphID LGraphID , strategy IntermediateProcessorStrategy ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*InteractiveCrossingMinimizer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*InteractiveCrossingMinimizer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).ProcessHierarchy (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).UseBottomUp (arena *LGraphArena , graphID LGraphID , parent *LNodeID , crossMinDeterministic bool , order [][]LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*NoCrossingMinimizer ).Process (*LGraphArena , LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p3order.(*NoCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*SweepCopy ).TransferNodeAndPortOrdersToGraph (arena *LGraphArena , graphID LGraphID , setPortConstraints bool )
func github.com/d2lang/elk-go/internal/layered/p4nodes.BuildNeighborhoodInformation (arena *LGraphArena , graphID LGraphID ) *p4nodes .NeighborhoodInformation
func github.com/d2lang/elk-go/internal/layered/p4nodes.NewBKAlignedLayout (graphID LGraphID , nodeCount int , vertical p4nodes .VerticalDirection , horizontal p4nodes .HorizontalDirection ) *p4nodes .BKAlignedLayout
func github.com/d2lang/elk-go/internal/layered/p4nodes.NewBKAligner (arena *LGraphArena , graphID LGraphID , info *p4nodes .NeighborhoodInformation ) *p4nodes .BKAligner
func github.com/d2lang/elk-go/internal/layered/p4nodes.NewBKCompactor (arena *LGraphArena , graphID LGraphID ) *p4nodes .BKCompactor
func github.com/d2lang/elk-go/internal/layered/p4nodes.PlaceBrandesKoepf (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKCompactor ).HorizontalCompaction (arena *LGraphArena , graphID LGraphID , info *p4nodes .NeighborhoodInformation , layout *p4nodes .BKAlignedLayout )
func github.com/d2lang/elk-go/internal/layered/p4nodes.BrandesKoepfPlacer .Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.BrandesKoepfPlacer .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*InteractiveNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*InteractiveNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*LinearSegmentsNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*LinearSegmentsNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*NetworkSimplexPlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*NetworkSimplexPlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*SimpleNodePlacer ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*SimpleNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.FinalizeSplineBendpoints (arena *LGraphArena , graphID LGraphID )
func github.com/d2lang/elk-go/internal/layered/p5edges.(*OrthogonalEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*OrthogonalEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*PolylineEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*PolylineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*SplineEdgeRouter ).Process (arena *LGraphArena , graphID LGraphID ) error
func github.com/d2lang/elk-go/internal/layered/p5edges.(*SplineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges/orthogonal.(*Generator ).RouteEdges (arena *LGraphArena , graphID LGraphID , sourceNodes []LNodeID , sourceLayerIndex int , targetNodes []LNodeID , startPosition float64 ) int
type LNodeID uint32 (basic type)
Methods (only one )
( LNodeID) Index () int
As Outputs Of (at least 9 )
func (*LGraphArena ).AddNode (graphID LGraphID ) LNodeID
func (*LGraphArena ).CreateExternalPortDummy (propertyHolder *basegraph .PropertyMap , portConstraints PortConstraints , portSide PortSide , netFlow int , portNodeSize *geometry .Point , portPosition *geometry .Point , portSize geometry .Point , layoutDirection Direction , graphID LGraphID ) LNodeID
func (*LGraphArena ).EdgeOtherNode (edgeID LEdgeID , nodeID LNodeID ) LNodeID
func (*LGraphArena ).EdgeSourceNode (edgeID LEdgeID ) LNodeID
func (*LGraphArena ).EdgeTargetNode (edgeID LEdgeID ) LNodeID
func (*LGraphArena ).GraphAllNodes (graphID LGraphID ) []LNodeID
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNode (arena *LGraphArena , portID LPortID ) (LNodeID , bool , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNodePreprocessing (arena *LGraphArena , nodeID LNodeID ) (map[LNodeID ]int , error )
func github.com/d2lang/elk-go/internal/layered/p3order.(*SweepCopy ).Nodes () [][]LNodeID
As Inputs Of (at least 88 )
func HorizontalSpacing (arena *LGraphArena , first, second LNodeID ) float64
func IndividualOrDefault (arena *LGraphArena , nodeID LNodeID , property *basegraph .Property [float64 ]) float64
func LNodeOrigin (id LNodeID ) Origin
func VerticalSpacing (arena *LGraphArena , first, second LNodeID ) float64
func (*LGraphArena ).CachePortSides (nodeID LNodeID )
func (*LGraphArena ).EdgeOtherNode (edgeID LEdgeID , nodeID LNodeID ) LNodeID
func (*LGraphArena ).ExternalPortPosition (graphID LGraphID , dummyID LNodeID , portWidth, portHeight float64 ) geometry .Point
func (*LGraphArena ).InvalidatePortSideCache (nodeID LNodeID )
func (*LGraphArena ).IsDescendant (childID, parentID LNodeID ) bool
func (*LGraphArena ).Node (id LNodeID ) *LNode
func (*LGraphArena ).NodeBorderToContentCoordinates (nodeID LNodeID , horizontal, vertical bool )
func (*LGraphArena ).NodeConnectedEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).NodeGraph (nodeID LNodeID ) LGraphID
func (*LGraphArena ).NodeIncomingEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).NodeIndexInLayer (nodeID LNodeID ) int
func (*LGraphArena ).NodeOutgoingEdges (nodeID LNodeID ) []LEdgeID
func (*LGraphArena ).NodePortSideView (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).NodePortsOnSide (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).ProvideCollectorPort (graphID LGraphID , nodeID LNodeID , portType PortType , side PortSide ) LPortID
func (*LGraphArena ).RemoveNodeFromGraph (nodeID LNodeID )
func (*LGraphArena ).ResizeNode (nodeID LNodeID , newSize geometry .Point , movePorts, moveLabels bool )
func (*LGraphArena ).SetNodeLayer (nodeID LNodeID , layerID *LayerID )
func (*LGraphArena ).SetNodeLayerAt (nodeID LNodeID , layerID *LayerID , index int )
func (*LGraphArena ).SetPortNode (portID LPortID , nodeID *LNodeID )
func github.com/d2lang/elk-go/internal/layered/intermediate.JoinLongEdgeAt (arena *LGraphArena , dummyID LNodeID , addUnnecessary bool )
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNodePreprocessing (arena *LGraphArena , nodeID LNodeID ) (map[LNodeID ]int , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.SplitEdgeAtDummy (arena *LGraphArena , edgeID LEdgeID , dummyID LNodeID ) LEdgeID
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.IndividualOrInherited (arena *LGraphArena , nodeID LNodeID , property basegraph .Property [float64 ]) float64
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.Install (arena *LGraphArena , nodeID LNodeID ) (*loops .Holder , error )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.NeedsProcessing (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.NewNodeComparator (arena *LGraphArena , previousLayer []LNodeID , ordering OrderingStrategy , longEdgeOrder preserveorder .LongEdgeOrderingStrategy , beforePorts bool ) *preserveorder .NodeComparator
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.NewPortComparator (arena *LGraphArena , previousLayer []LNodeID , ordering OrderingStrategy , targetNodeModelOrder map[LNodeID ]int , portModelOrder bool ) *preserveorder .PortComparator
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.NewPortComparator (arena *LGraphArena , previousLayer []LNodeID , ordering OrderingStrategy , targetNodeModelOrder map[LNodeID ]int , portModelOrder bool ) *preserveorder .PortComparator
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.(*NodeComparator ).Compare (first, second LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.IsBreakingPointEnd (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/wrapping.IsBreakingPointStart (arena *LGraphArena , nodeID LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeAllCrossingsCounter (counter *p3order .AllCrossingsCounter , arena *LGraphArena , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeBarycenterPortDistributor (distributor *p3order .BarycenterPortDistributor , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeForsterConstraintResolver (resolver *p3order .ForsterConstraintResolver , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.InitializeGreedyPortDistributor (distributor *p3order .GreedyPortDistributor , arena *LGraphArena , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.NewCrossingMatrixFiller (arena *LGraphArena , crossMinType p3order .CrossMinType , order [][]LNodeID , freeLayerIndex int , side p3order .CrossingCountSide ) *p3order .CrossingMatrixFiller
func github.com/d2lang/elk-go/internal/layered/p3order.NewForsterConstraintResolver (arena *LGraphArena , order [][]LNodeID ) *p3order .ForsterConstraintResolver
func github.com/d2lang/elk-go/internal/layered/p3order.NewNorthSouthEdgeNeighbouringNodeCrossingsCounter (arena *LGraphArena , layer []LNodeID ) *p3order .NorthSouthEdgeNeighbouringNodeCrossingsCounter
func github.com/d2lang/elk-go/internal/layered/p3order.NewSweepCopy (arena *LGraphArena , nodeOrder [][]LNodeID ) *p3order .SweepCopy
func github.com/d2lang/elk-go/internal/layered/p3order.NewSwitchDecider (arena *LGraphArena , freeLayerIndex int , order [][]LNodeID , filler *p3order .CrossingMatrixFiller , portPositions []int , holder *p3order .GraphInfoHolder , oneSided bool ) *p3order .SwitchDecider
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).CountAllCrossings (arena *LGraphArena , currentOrder [][]LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtEdgeLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , edgeID LEdgeID , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*AllCrossingsCounter ).InitAtPortLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , nodeOrder [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterHeuristic ).MinimizeCrossings (order [][]LNodeID , freeLayerIndex int , forwardSweep, firstSweep bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterHeuristic ).MinimizeLayer (layer *[]LNodeID , preordered, randomize, forward bool )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterHeuristic ).SetFirstLayerOrder (order [][]LNodeID , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).CalculatePortRanks (arena *LGraphArena , layer []LNodeID , portType PortType )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).DistributePortsWhileSweeping (arena *LGraphArena , nodeOrder [][]LNodeID , currentIndex int , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).InitAtLayerLevel (layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*BarycenterPortDistributor ).InitAtPortLevel (arena *LGraphArena , layerIndex, nodeIndex, portIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingMatrixFiller ).GetCrossingMatrixEntry (arena *LGraphArena , upper, lower LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountCrossingsBetweenLayers (arena *LGraphArena , leftLayerNodes, rightLayerNodes []LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsBetweenNodesInBothOrders (arena *LGraphArena , upperNode, lowerNode LNodeID , side PortSide ) (int , int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsOnSide (arena *LGraphArena , nodes []LNodeID , side PortSide ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountNorthSouthPortCrossingsInLayer (arena *LGraphArena , nodes []LNodeID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitForCountingBetween (arena *LGraphArena , leftLayerNodes, rightLayerNodes []LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitPortPositionsForInLayerCrossings (arena *LGraphArena , nodes []LNodeID , side PortSide ) []LPortID
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).SwitchNodes (arena *LGraphArena , wasUpperNode, wasLowerNode LNodeID , side PortSide )
func github.com/d2lang/elk-go/internal/layered/p3order.(*ForsterConstraintResolver ).InitAtLayerLevel (layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*ForsterConstraintResolver ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*ForsterConstraintResolver ).ProcessConstraints (arena *LGraphArena , nodes *[]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedyPortDistributor ).DistributePortsWhileSweeping (arena *LGraphArena , order [][]LNodeID , currentIndex int , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedyPortDistributor ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedySwitchHeuristic ).InitAtLayerLevel (arena *LGraphArena , layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedySwitchHeuristic ).MinimizeCrossings (order [][]LNodeID , freeLayerIndex int , forwardSweep, _ bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*GreedySwitchHeuristic ).SetFirstLayerOrder (order [][]LNodeID , forward bool ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).InitAtLayerLevel (arena *LGraphArena , layerIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).InitAtNodeLevel (arena *LGraphArena , layerIndex, nodeIndex int , order [][]LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).UseBottomUp (arena *LGraphArena , graphID LGraphID , parent *LNodeID , crossMinDeterministic bool , order [][]LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepTypeDecider ).UseBottomUp (arena *LGraphArena , graphID LGraphID , parent *LNodeID , crossMinDeterministic bool , order [][]LNodeID ) bool
func github.com/d2lang/elk-go/internal/layered/p3order.(*NorthSouthEdgeNeighbouringNodeCrossingsCounter ).CountCrossings (arena *LGraphArena , upper, lower LNodeID )
func github.com/d2lang/elk-go/internal/layered/p3order.(*SwitchDecider ).NotifyOfSwitch (arena *LGraphArena , upper, lower LNodeID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CheckSpaceAbove (arena *LGraphArena , blockRoot LNodeID , delta float64 , info *p4nodes .NeighborhoodInformation ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CheckSpaceBelow (arena *LGraphArena , blockRoot LNodeID , delta float64 , info *p4nodes .NeighborhoodInformation ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).MaxY (arena *LGraphArena , nodeID LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).MinY (arena *LGraphArena , nodeID LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).ShiftBlock (arena *LGraphArena , rootID LNodeID , delta float64 )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*ThresholdStrategy ).CalculateThreshold (arena *LGraphArena , layout *p4nodes .BKAlignedLayout , oldThreshold float64 , blockRoot, currentNode LNodeID ) float64
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*ThresholdStrategy ).FinishBlock (nodeID LNodeID )
func github.com/d2lang/elk-go/internal/layered/p5edges/orthogonal.(*Generator ).RouteEdges (arena *LGraphArena , graphID LGraphID , sourceNodes []LNodeID , sourceLayerIndex int , targetNodes []LNodeID , startPosition float64 ) int
func github.com/d2lang/elk-go/internal/layered/p5edges/orthogonal.(*Generator ).RouteEdges (arena *LGraphArena , graphID LGraphID , sourceNodes []LNodeID , sourceLayerIndex int , targetNodes []LNodeID , startPosition float64 ) int
type LPortID uint32 (basic type)
Methods (only one )
( LPortID) Index () int
As Outputs Of (at least 6 )
func (*LGraphArena ).AddPort () LPortID
func (*LGraphArena ).EdgeOtherPort (edgeID LEdgeID , portID LPortID ) LPortID
func (*LGraphArena ).NodePortSideView (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).NodePortsOnSide (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).ProvideCollectorPort (graphID LGraphID , nodeID LNodeID , portType PortType , side PortSide ) LPortID
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitPortPositionsForInLayerCrossings (arena *LGraphArena , nodes []LNodeID , side PortSide ) []LPortID
As Inputs Of (at least 15 )
func LPortOrigin (id LPortID ) Origin
func (*LGraphArena ).EdgeOtherPort (edgeID LEdgeID , portID LPortID ) LPortID
func (*LGraphArena ).Port (id LPortID ) *LPort
func (*LGraphArena ).PortConnectedEdges (portID LPortID ) []LEdgeID
func (*LGraphArena ).SetEdgeSource (edgeID LEdgeID , portID *LPortID )
func (*LGraphArena ).SetEdgeTarget (edgeID LEdgeID , portID *LPortID )
func (*LGraphArena ).SetEdgeTargetAt (edgeID LEdgeID , portID *LPortID , index int )
func (*LGraphArena ).SetPortNode (portID LPortID , nodeID *LNodeID )
func (*LGraphArena ).SetPortSide (portID LPortID , side PortSide )
func github.com/d2lang/elk-go/internal/layered/intermediate.LongEdgeTargetNode (arena *LGraphArena , portID LPortID ) (LNodeID , bool , error )
func github.com/d2lang/elk-go/internal/layered/intermediate.SetPortSide (arena *LGraphArena , portID LPortID )
func github.com/d2lang/elk-go/internal/layered/intermediate/preserveorder.(*PortComparator ).Compare (firstID, secondID LPortID ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountCrossingsBetweenPortsInBothOrders (arena *LGraphArena , upperPort, lowerPort LPortID ) (int , int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).SwitchPorts (arena *LGraphArena , topPort, bottomPort LPortID )
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*BKAlignedLayout ).CalculateDelta (arena *LGraphArena , sourceID, targetID LPortID ) float64
type PortSide uint8 (basic type)
PortSide matches org.eclipse.elk.core.options.PortSide's ordinal order.
Methods (total 2 )
( PortSide) Opposed () PortSide
( PortSide) String () string
Implements (at least 2 )
PortSide : expvar.Var
PortSide : fmt.Stringer
As Outputs Of (at least 6 )
func DirectionPortSide (direction Direction ) PortSide
func ParsePortSide (value string ) (PortSide , bool )
func PortSide.Opposed () PortSide
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*Edge ).LabelSide () PortSide
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*HyperLoop ).PortSides () []PortSide
func github.com/d2lang/elk-go/internal/layered/intermediate/loops/ordering.SortedTwoSideLoopPortSides (loop *loops .HyperLoop ) [2]PortSide
As Inputs Of (at least 11 )
func (*LGraphArena ).CreateExternalPortDummy (propertyHolder *basegraph .PropertyMap , portConstraints PortConstraints , portSide PortSide , netFlow int , portNodeSize *geometry .Point , portPosition *geometry .Point , portSize geometry .Point , layoutDirection Direction , graphID LGraphID ) LNodeID
func (*LGraphArena ).NodePortSideView (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).NodePortsOnSide (nodeID LNodeID , side PortSide ) []LPortID
func (*LGraphArena ).ProvideCollectorPort (graphID LGraphID , nodeID LNodeID , portType PortType , side PortSide ) LPortID
func (*LGraphArena ).SetPortSide (portID LPortID , side PortSide )
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*HyperLoop ).HasPortsOnSide (side PortSide ) bool
func github.com/d2lang/elk-go/internal/layered/intermediate/loops.(*HyperLoop ).SetRoutingSlot (side PortSide , slot int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsBetweenNodesInBothOrders (arena *LGraphArena , upperNode, lowerNode LNodeID , side PortSide ) (int , int )
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).CountInLayerCrossingsOnSide (arena *LGraphArena , nodes []LNodeID , side PortSide ) int
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).InitPortPositionsForInLayerCrossings (arena *LGraphArena , nodes []LNodeID , side PortSide ) []LPortID
func github.com/d2lang/elk-go/internal/layered/p3order.(*CrossingsCounter ).SwitchNodes (arena *LGraphArena , wasUpperNode, wasLowerNode LNodeID , side PortSide )
As Types Of (total 5 )
const EastSide
const NorthSide
const SouthSide
const UndefinedSide
const WestSide
type ProcessorConfiguration (struct)
ProcessorConfiguration has six slots: before each of the five phases and
one after edge routing.
Methods (total 4 )
(*ProcessorConfiguration) AddAfter (phase Phase , processor IntermediateProcessorStrategy ) *ProcessorConfiguration
(*ProcessorConfiguration) AddAll (other ProcessorConfiguration ) *ProcessorConfiguration
(*ProcessorConfiguration) AddBefore (phase Phase , processor IntermediateProcessorStrategy ) *ProcessorConfiguration
(*ProcessorConfiguration) Slot (slot int ) []IntermediateProcessorStrategy
As Outputs Of (at least 29 )
func GreedyCycleConfiguration () ProcessorConfiguration
func NetworkSimplexLayeringConfiguration () ProcessorConfiguration
func ConfiguredProcessor .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func (*ProcessorConfiguration).AddAfter (phase Phase , processor IntermediateProcessorStrategy ) *ProcessorConfiguration
func (*ProcessorConfiguration).AddAll (other ProcessorConfiguration ) *ProcessorConfiguration
func (*ProcessorConfiguration).AddBefore (phase Phase , processor IntermediateProcessorStrategy ) *ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DepthFirstCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*DFSNodeOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*GreedyCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*InteractiveCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*ModelOrderCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p1cycles.(*SCCNodeTypeCycleBreaker ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*CoffmanGrahamLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*InteractiveLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*LongestPathLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*MinWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*NetworkSimplexLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p2layers.(*StretchWidthLayerer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*InteractiveCrossingMinimizer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*LayerSweepCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p3order.(*NoCrossingMinimizer ).ProcessorConfiguration (_ *LGraphArena , _ LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.BrandesKoepfPlacer .ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*InteractiveNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*LinearSegmentsNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*NetworkSimplexPlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p4nodes.(*SimpleNodePlacer ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*OrthogonalEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*PolylineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
func github.com/d2lang/elk-go/internal/layered/p5edges.(*SplineEdgeRouter ).ProcessorConfiguration (arena *LGraphArena , graphID LGraphID ) ProcessorConfiguration
As Inputs Of (at least one exported )
func (*ProcessorConfiguration).AddAll (other ProcessorConfiguration ) *ProcessorConfiguration
Package-Level Functions (total 26)
Package-Level Variables (total 178)
Package-Level Constants (total 251)
The pages are generated with Golds v0.8.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .