Skip to content

Instantly share code, notes, and snippets.

View Adrien-Luxey's full-sized avatar

Adrien Luxey Adrien-Luxey

View GitHub Profile
@Adrien-Luxey
Adrien-Luxey / layered_layout.py
Created April 6, 2021 14:35
WIP of a graph layered layout implementation for NetworkX, following Sugiyama's method.
"""Implementation of the layered layout for DAGs.
By Adrien Luxey, April 2021.
Licence: public domain
TODO:
* Handling disconnected components
* Layer width minimization
* Handle scale and center parameters