in reply to Re^2: How to enable virtual paths inside a graph DS?
in thread How to enable virtual paths inside a graph DS?
I think you've stated what the problem is using Graph as the representation. In a filesystem a symlink entry is a pointer to the complete destination name, whereas when you're storing things as nodes you're seeing each step in the destination as a separate node (and you've lost the notation that "/p" maps to "/a/b/c/d" (or whatever)).
Little fuzzy, but I think you've gone a bit far afield trying to reimplement a filesystem. To do what you want (stipulated that I'm incautiously reading the problem) it almost seems to me that you want to have a list of links ordered from longest substitution to shortest and then walk that list of substitutions s{$cur_subst}{$cur_replacement} in that order.</handwavy>
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to enable virtual paths inside a graph DS?
by ovedpo15 (Pilgrim) on Apr 26, 2022 at 20:35 UTC | |
by etj (Priest) on Apr 27, 2022 at 15:54 UTC |