Gurobi / gurobi-optimods

Data-driven APIs for common optimization tasks
https://gurobi-optimods.readthedocs.io
Apache License 2.0
153 stars 32 forks source link

Metromap - Octilinear Graph Representation #139

Closed Marika-K closed 5 months ago

Marika-K commented 5 months ago

This mod computes an octilinear representation of a graph if the vertex degree is at most 8. Octilinear means that the edges are restricted to horizontals, verticals, and diagonals at 45 degrees. Such a schematic drawing helps to ease navigation in e.g. metro maps. It could also be considered for other transportation networks or graphs in general. This OptiMod can be used alone. However, it also provides a nice add-on for the line optimization OptiMod.

What will the API be?

This OptiMod requires the networkx package. The input is

The output is

Below is an example of a graph with original node positions (left) and computed octilinear positions (right)

image