EdgeRouter with Bus-style Routing
This demo shows how to configure the EdgeRouter to generate orthogonal bus-style routes. A
bus is a segment shared by multiple edges. The actual nodes are attached to the bus with
A bus is defined via the add method of the
buses property. The method yields an object on
which the set of edges can conveniently be defined, e.g., via a delegate.
The EdgeRouterBusDescriptor class provided to the add method
offers settings related to a bus.
This example showcases two buses which are defined differently.
First Bus - Automatic Backbone
The first bus (orange graph) is
defined using a default descriptor and with no further settings. This means that the
algorithm automatically chooses backbone segments.
Second Bus - Given Points
The second bus (blue graph) is
defined by manually providing the
location of the backbone segments. The manually defined backbone consists of a vertical
segment to the left of the nodes and two horizontal segments in-between the node rows.
You can copy the code snippet to configure the layout from
The Bus Routing Demo is a more complex demo that shows the bus-style routing
feature. More features offered by the EdgeRouter algorithm are shown by the
Layout Styles Demo.
The Developer's Guide provides more information about the concepts of the
Bus-style routing feature of the