See yFiles in action
30 min • Online • No install required
For developers, PMs & tech leads
- Quick-start walkthrough + a real integration example
- Live Q&A with next-step recommendations
Hierarchical Layout with Node Port Candidates
This demo shows how to use NodePortCandidates to define the port
locations and limit the number of edges per port in HierarchicalLayout.
Node 5 uses four port candidates, one for each side of the node.
Each LayoutPortCandidate only allows for one connecting edge, hence the
four incoming edges are distributed to the four port candidates.
Things to Try
Click the button in the toolbar to toggle between hierarchical layout with and without a
configured port candidate set.
Documentation