Cutsets API should return ordered list
blcham opened this issue · comments
Miroslav Blaško commented
REST API should return an ordered list of cutsets, with the highest probability first.
This way:
- we do not need to sort in UI
- we can decide in the future to return only a limited number of cutsets
Miroslav Blaško commented
I can imagine only one situation when it is useful to have API without sorting. It would be the case when:
- computation takes too long
- the algorithm does not return cutsets in optimal order
- we implement paging
- we show in UI suboptimal (not minimal) cutsets first and refine it later
@kostobog this is not the case right?
Miroslav Blaško commented
We definitely do not want to persist ordering in the list since we have this information in the probability.
Miroslav Blaško commented
@kostobog please comment on how to implement it in case it makes sense.