Table of Contents

Class OrthogonalRouter

Namespace
FlowGraph.Core.Routing
Assembly
FlowGraph.Core.dll

Routes edges using orthogonal (right-angle) paths that avoid obstacles. Uses A* pathfinding on a visibility graph.

public class OrthogonalRouter : IEdgeRouter
Inheritance
OrthogonalRouter
Implements
Inherited Members

Remarks

Supports Guided mode where the router calculates paths that pass through user-defined waypoints while avoiding obstacles.

Properties

Margin

Minimum distance to maintain from obstacles.

public double Margin { get; set; }

Property Value

double

PreferredOffset

Preferred distance for horizontal segments from source/target.

public double PreferredOffset { get; set; }

Property Value

double

Methods

Route(EdgeRoutingContext, Edge)

Calculates waypoints for an edge to route around obstacles.

public IReadOnlyList<Point> Route(EdgeRoutingContext context, Edge edge)

Parameters

context EdgeRoutingContext

The routing context containing graph information.

edge Edge

The edge to route.

Returns

IReadOnlyList<Point>

A list of waypoints (including start and end points).