OpticalTopo#
User APIs#
Create a round-robin topology with the circle method. |
|
|
Opera topology support multiple upper links per node. |
|
Create a Shale topology. |
|
Static topology generated from a random regular graph. |
Create a bipartite matching topology based on traffic matrix. |
Helper Functions#
|
Draw the topology using matplotlib in a style that matches the dashboard card UI (indigo accent, slate text/edges, no axes, system-ish font). |
Randomize connection order (time_slice -> connections mapping) for circuits. |
|
|
Helper function to transform the circuits to reconfigure topology one port per time slice. |
Helper function to get the number of time slices from circuits. |
|
Helper function to get the number of links from circuits. |