Parallel Lines Extrication Test
This page is intended to show a reordering algorithm that can be used to simplify the understanding of a parallel lines graph.
Each of the four line columns in the graph represents a type of entity (respectively articles, companies, investments and investor) and each line connecting adjacent line columns represent a link between two associated entities.
Links between entities can form a hard to read net, so we've added an explicit 'extricate' command to automatically sort link endpoints between two columns to improve readability.
Extricating lines will, on the other hand, result in the loss of the original order between entities, that may have been significant (e.g. investments by invested amount).
The actual data loaded is stored in separate json files (i.e. this example does not load live data from a database), and connections between entities are established client-side.
Execution times are visible in the console.