josherrickson / rlemon

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

return named lists #33

Closed josherrickson closed 2 years ago

josherrickson commented 2 years ago

Currently, many functions return a list. We should make these named lists to ease use and access. This should only go in exported functions, not in the runners.

josherrickson commented 2 years ago

E.g.,

> MaxClique(s, t, n)
[[1]]
[1] 3

[[2]]
[1] 1 2 3

should really be something like

> MaxClique(s, t, n)
$clique_size
[1] 3

$clique_members
[1] 1 2 3
josherrickson commented 2 years ago