Metraipolis › archive › dc_98ba096598b6

Topological sorting — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Topological_sorting
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T14:58:22.762Z
SHA-256 of the archived text
3cea277c630a5056bad6bcc83b5cb7bcd339c739b10aa49cc7e3f8ce33017f54
Stable URL of this page
https://metraipolis.com/documento/dc_98ba096598b6

How to cite

Topological sorting — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Topological_sorting (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_98ba096598b6 (Metraipolis archive dc_98ba096598b6, sha256 3cea277c630a5056bad6bcc83b5cb7bcd339c739b10aa49cc7e3f8ce33017f54)
BibTeX
@misc{dc98ba096598b6,
  title = {Topological sorting — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Topological_sorting},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_98ba096598b6; sha256 3cea277c630a5056bad6bcc83b5cb7bcd339c739b10aa49cc7e3f8ce33017f54},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Topological_sorting. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In computer science, a topological sort or topological ordering of a directed graph is a linear ordering of its vertices such that for every directed edge (u,v) from vertex u to vertex v, u comes before v in the ordering. For instance, the vertices of the graph may represent tasks to be performed, and the edges may represent constraints that one task must be performed before another; in this application, a topological ordering is just a valid sequence for the tasks. Precisely, a topological sort is a graph traversal in which each node v is visited only after all its dependencies are visited. A topological ordering is possible if and only if the graph has no directed cycles, that is, if it is a directed acyclic graph (DAG). Any DAG has at least one topological ordering, and there are linear time algorithms for constructing it. Topological sorting has many applications, especially in ranking problems such as feedback arc set. Topological sorting is also possible when the DAG has disconnected components.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Topological sorting» — https://en.wikipedia.org/wiki/Topological_sorting
Wikidata Q753127 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q753127
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Topological_sorting?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1328053597, consultata il 2026-10-07T14:31:23.815Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 0855593fe713c33e433205fd4abc0d37f4d5b0b854fd59ae0000acf3a801b2ab