devel/rubygem-tsort 0.2.0 DragonFly
Topological sorting using Tarjan's algorithm
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- BSD2CLAUSE, RUBY
- Categories
- devel, rubygems
- Package size
- 7.5 KiB, 25.6 KiB installed
Description
TSort implements topological sorting using Tarjan's algorithm for strongly connected components.
TSort is designed to be able to be used with any object which can be interpreted as a directed graph.
TSort requires two methods to interpret an object as a graph, tsort_each_node and tsort_each_child:
- tsort_each_node is used to iterate for all nodes over a graph.
- tsort_each_child is used to iterate for child nodes of a given node.
The equality of nodes are defined by eql? and hash since TSort uses Hash internally.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | devel/rubygem-tsort | 0.2.0 |
| FreeBSD | devel/rubygem-tsort | 0.2.0 |
| MidnightBSD | devel/rubygem-tsort | 0.2.0 |
Install
Binary package:
pkg install rubygem-tsort
From DPorts:
cd /usr/dports/devel/rubygem-tsort && make install clean
Dependencies
Run dependencies 2
No port depends on this one.