Open dyc3 opened 2 years ago
This is on my list of todos. However, it is a tricky problem. Moreover, the drawing hints are not sufficient and other heuristics are required such as symmetry.
The current algorithm solves the horizontal placement and vertical placement graphs independently but I think this more sophisticated approach will require both graphs to be solved concurrently. There is another algorithm I have tried (see schemlineqplacer.py
) that could be applied but again this needs some heuristics to get a tidy solution.
I welcome any suggestions of algorithms that could be used.
It's very frustrating to work with a circuit that you can't visualize to make sure you did it right. Unfortunately, for lcapy circuits, not all circuits that are drawable are solvable, and vice versa.
These functions generate circuits that are either drawable or solvable.
I think it could be possible to use something like the networkx library to compute layouts for circuits automatically.