Links and routes#
Edge key behavior#
| Case | Edge key | Result |
|---|---|---|
| No Edge ID configured | Vertex A + "-" + final target |
repeated source-target rows become one logical link |
| Edge ID configured with unique values | Edge ID value | each unique value creates a separate link or routed multi-hop edge with its own row properties |
| Edge ID configured but repeated for a direct link | repeated Edge ID value | rows are treated as the same logical link |
| Edge ID repeated across valid ordered route rows | repeated Edge ID value | continuous rows display as one route; each row keeps properties on its corresponding displayed portion |
| Edge ID configured but empty | Vertex A + "-" + final target |
same as no Edge ID for that row |
Vertex B path rules#
Vertex B can be:
- a target node ID, for example
B - a path array, for example
["B", "C"] - a JSON string containing a path array, depending on the data source output
Path behavior:
- A node ID string creates
[Vertex A, Vertex B]. - A single-item path array creates
[Vertex A, item]. - If a path array does not start with the current Vertex A value, Mapgl prepends Vertex A.
- The first usable path item must be a node ID.
- The final path item must resolve to a target node ID.
- Intermediate string items are treated as node IDs.
- Coordinate waypoints are used for routed Geo paths.
- Graph-mode auto-layout paths should use node IDs for path waypoints.
- Unresolved intermediate node IDs are skipped while the remaining valid route is retained.
- Malformed paths and paths with an unresolved source or final target are skipped.
Examples:
# Direct target
Vertex A=A, Vertex B=B
# Graph route through intermediate nodes
Vertex A=A, Vertex B=["A", "B", "C"], Edge ID=route-1
# Geo route through a longitude/latitude waypoint
Vertex A=A, Vertex B=["A", [15, 55], "B"], Edge ID=geo-route-1
Parallel link rules#
- Parallel links require unique Edge ID values.
- Parallel links are auto-layouted as separate paths.
- Properties for parallel links are taken from each data record individually.
- Per-link metrics, labels, widths, and colors may differ across parallel links.
- In the open source panel, parallel edge offset rendering is available in abstract node graph mode.
Ordered multi-row route rules#
Trace and service-dependency data can describe one route across multiple rows:
- Vertex A identifies the starting service or node for each row.
- Vertex B identifies that row's direct target or route.
- Edge ID identifies the complete trace branch or logical route.
- Rows sharing that identity must be adjacent in the dataframe and remain in data source order.
- The start of each later row must match the final node reached by the preceding row.
- Styling, metrics, and tooltip fields from each row remain associated with the corresponding displayed route portion.
- Parallel links that must remain separate use different Edge ID values.
Example:
Vertex A Vertex B Edge ID duration_ms status
api-gateway payment-service trace-42 18 ok
payment-service postgres-primary trace-42 41 warn
These rows form one supported ordered route because they are consecutive and connect at payment-service. A repeated-ID row that does not continue end-to-start is unsupported input and is reported as a graph-data issue. Do not rely on how invalid groups are recovered or presented.