francois-durand / whalrus

Which Alternative Represents Us, a package for voting rules
Other
4 stars 2 forks source link

ADD: Import function for Preflib #265

Open claussmann opened 1 year ago

claussmann commented 1 year ago

This adds a basic function to import files from Preflib to whalrus. You can now import all sorts of ordinal ranks directly from the given dataset file to the internal datastructures from whalrus.

claussmann commented 1 year ago

Just one question: Does whalrus provide a way to add the same ballot multiple times? In Preflib there is a multiplicity property. In my contribution I simply added the ballot multiple times. But this doesn‘t seem to be the most efficient way.