in reply to How to represent the filesystem in DS?
You'd need to have logic to avoid "dir" having "contain" edges to "file"/"link"/"dir" vertices that didn't have the right names. An alternative is to just have inode numerical-ID type vertex-IDs, with a "name" attribute, and have the semantics even closer to a real filesystem.
It's not so much that Graph can solve all your problems, but it would allow you to simply ignore/take for granted some of them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to represent the filesystem in DS?
by afoken (Chancellor) on Apr 04, 2022 at 16:30 UTC |