Graph theory lessons
Demonstrate how a lower total cost can involve multiple connections.

Add a small directed weighted-graph route calculator to an Elementor page.
Enter directed connections as From | To | cost, then a start and destination. Press Find route to calculate a lowest-cost path from those authored connections.
Set the labels, example connections, start and destination, and adjust colours and typography.
Explore a small weighted graph using directed connections and nonnegative costs. The widget calculates a lowest-cost authored path in the browser.
Demonstrate how a lower total cost can involve multiple connections.
Explore a small manually authored weighted directed graph.
Compare illustrative connections using the costs you provide.
Start with Complementor installed and your license connected. Enable this module in the WordPress library, then configure it in Elementor.
Activate Elementor and Complementor and enable Manual Weighted Route Preview.
Add the widget to an Elementor page.
Enter directed connections as From | To | cost, one per line.
Enter a start and destination separated by a vertical bar and style the widget.
Publish and run the example to check the displayed route and cost.
Configure the settings available for this module to suit the page you are building.
Edit both input labels, starting values, heading, action and result labels.
Choose an optional button icon.
Adjust typography, colours, responsive spacing and alignment.
Compare the existing Elementor workflow with this Complementor module before choosing your setup.
For real-world directions, use a mapping service with current road and travel data. This widget uses only manually entered graph connections.
Use a dedicated graph application for visualisation or larger datasets. This widget returns a textual path and total.
Complementor uses classic Elementor APIs. Atomic-native controls are not implemented. Check your theme, cache and integrations on a staging site before release.
Check these settings if the published page behaves differently from the editor.
Connections are directed. Check that each line points in the direction needed.
Use a nonnegative decimal number on every line, with From | To | cost format.
Costs use JavaScript floating-point arithmetic and may have rounding differences.
No. It uses only manually entered directed connections and costs.
No. Add a separate reverse connection when needed.
No. Costs must be nonnegative decimal numbers.
It reports that no authored route was found.
This module processes it in the browser and does not itself submit or persist the input.
This module is included in Complementor All Access. Choose your production website allowance; every plan includes the same available modules.
Renews at $29 USD each year.
Renews at $49 USD each year.
Renews at $99 USD each year.
Applicable taxes extra. Annual subscriptions renew automatically unless canceled in your customer account. Read the terms and 14-day technical-issue refund policy.