Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dubadub committed Jun 7, 2014
1 parent 2def44f commit 8df0674
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# TopoSort

TODO: Write a gem description
Take a hash of elements and their dependencies and sort
them in an order where each element required is before
the elements that require it.

Note. Each element can have only one dependency.

## Installation

Expand All @@ -16,14 +20,15 @@ Or install it yourself as:

$ gem install topo_sort

## Usage
## Example usage

nodes = { 'a' => nil, 'b' => 'c', 'c' => 'f', 'd' => 'a', 'e' => 'b', 'f' => nil }

TopoSort.sort(nodes)
#=> ["a", "f", "c", "b", "d", "e"]

TODO: Write usage instructions here
## Run tests

## Contributing
Run tests with:

1. Fork it ( http://github.com/<my-github-username>/topo_sort/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
rake

0 comments on commit 8df0674

Please sign in to comment.