To cite package ‘toposort’ in publications use:

Zakharko T (2023). toposort: Topological Sorting Algorithms. R package version 1.0.0, https://github.com/tzakharko/toposort.

Corresponding BibTeX entry:

  @Manual{,
    title = {toposort: Topological Sorting Algorithms},
    author = {Taras Zakharko},
    year = {2023},
    note = {R package version 1.0.0},
    url = {https://github.com/tzakharko/toposort},
  }