2018-09-06 09:38:57 -04:00
|
|
|
# tsort
|
|
|
|
|
|
|
|
> Perform a topological sort.
|
|
|
|
> A common use is to show the dependency order of nodes in a directed acyclic graph.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tsort-invocation.html>.
|
2018-09-06 09:38:57 -04:00
|
|
|
|
|
|
|
- Perform a topological sort consistent with a partial sort per line of input separated by blanks:
|
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`tsort {{path/to/file}}`
|
2023-05-11 05:27:42 +02:00
|
|
|
|
|
|
|
- Perform a topological sort consistent on strings:
|
|
|
|
|
|
|
|
`echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort`
|