chevron_right Demos chevron_right Custom Edge Creation
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session

Book a free live demo
Interactive Edge Routing:

Custom Edge Creation Demo

This demo shows how to provide directional IPorts and PortCandidates and demonstrates several customizations for the edge creation gesture.

Ports and PortCandidates

Each node provides directional ports that are visualized with a circular ShapePortStyle.

This demo restricts edge creation to the provided PortCandidates. Therefore, the PortCandidates are also shown on the source on hover to indicate that edge creation may start there.

The Show Ports button in the toolbar toggles the visualization of the ports. Note how the PortCandidates are still visible on hover even if the ports are not visualized anymore.

Edge Creation

The edge color of newly created edges is dynamically determined by the source node from which the edge creation gesture originates.

Enable Target Node toggles whether edge creation should create a target node as well. This enables users to end the creation gesture on the empty canvas.

Interactive Edge Routing

This demo illustrates different approaches to interactive edge routing during edge creation: