How mjwybrow/adaptagrams works
Main Components
• Layout Solver Engines:
– libvpsc: The core solver for quadratic programming problems, handling variable placement and separation constraints.
– libcola: The constraint graph layout engine that uses a stress-majorization method for non-overlapping and aesthetically pleasing graph layouts. (Note: libcola depends on libvpsc.)
• Connector and Routing:
• Topology and Extensions:
– libtopology: Adds topology-preserving capabilities for layout constraints. (This component depends on libavoid, libcola, and libvpsc.)
– libdialect: Implements a multi-step approach (Decompose/Distribute, Arrange, Expand/Emend, Transform) to achieve human-like orthogonal network layouts. (This depends on libavoid, libcola, and libvpsc.)
• Project and Utility Components:
– libproject: Contains additional utilities, tests and probably manages project configurations.
– libvpsc’s additional tests and example directories.
• Bindings and External Interfaces:
– The SWIG interfaces (see file “cola/adaptagrams.i” and swig-python-setup.py) support other languages.
– Experimental code (e.g., the experimental/ directories) that offer implementations, tests, or prototypes such as a Java-based rectangle overlap solver and other layout experiments.
• (Optional) External/Third-Party Modules:
– Although not a fully deployed service, there is also the “cola.js” effort that ports these ideas to JavaScript/D3.
Architectural Patterns and Design Principles
• The overall design showcases a modular and layered architecture where lower-level solver engines (libvpsc) provide core functionality that higher-level layout engines (libcola, libavoid) reuse and extend.
• There is a clear separation of concerns: each library focuses on a specific domain (solver, connector routing, topology) while dependencies are managed using the GNU automake build system.
Final Remarks
• That every module or library is represented with clear labels and arranged to make the interdependencies obvious.
• The separation into as many components as required to highlight dependency chains (e.g., from libvpsc to libcola, then to libdialect and libtopology) is recommended.
• Supplementary “binding” and “experimental” zones to reflect the breadth of the system beyond the core libraries.