Untangling Directed Graphs
All Paths; Incremental Encoding and Iterative Decoding
This is the title of on an article I am currently working on. The aim of the article is to describe an algorithm which decomposes a digraph into the maximum set of sub-digraphs, where two sub-digraphs are either disjoint or one is enclosing the other. This decomposition makes it possible to assign each node to exactly one of the sub-digraphs, such that a unique structure of the digraph can be achieved.
The algorithm also encodes all paths through the digraph in linear time of its nodes per insertion of a new edge. Decoding of a particular path requires an iteration through an ordered list of nodes of the digraph.
I wonder if anyone is aware of an algorithm with similar capabilities.
Any hint pointing to such an algorithm would be a great help, thanks in advance.