josherrickson / rlemon

rlemon - R interface to C++ LEMON graph library
http://errickson.net/rlemon/
8 stars 3 forks source link

default and invalid algorithms #14

Closed josherrickson closed 3 years ago

josherrickson commented 3 years ago

For each function taking in an algorithm argument, need to ensure we have the following:

  1. Default algorithm specified.
  2. Default algorithm documented (this is mostly done).
  3. switch should error if user enters an invalid algorithm.
  4. A test to check for proper error on invalid algorithm.

See my changes to mincostflow: https://github.com/atewari7/rlemon/compare/4a600c1...1838541