Open tbouffard opened 4 years ago
This is the way we are building the graph under the hood: The Manhattan distance function computes the distance that would be traveled to get from one data point to the other if a grid-like path is followed.
The Manhattan distance function computes the distance that would be traveled to get from one data point to the other if a grid-like path is followed.
resources
mxgraph java implementation
used by bpmn.io for autolayout (there are refs to this algorithm described in diagram-js)
I found this JS lib that manages the Manhattan layout greatly!
demo: https://x6.antv.vision/zh/docs/api/registry/router#manhattan
demo: https://x6.antv.vision/zh/docs/api/registry/router#metro
This is the way we are building the graph under the hood:
The Manhattan distance function computes the distance that would be traveled to get from one data point to the other if a grid-like path is followed.
resources
mxgraph java implementation
used by bpmn.io for autolayout (there are refs to this algorithm described in diagram-js)