- implemented tests
- todo: greedy nodeselection