projects
/
selectricity
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae1b108
)
Merge another cpssd fix
author
John Dong
<jdong@mit.edu>
Wed, 15 Aug 2007 20:28:05 +0000
(16:28 -0400)
committer
John Dong
<jdong@mit.edu>
Wed, 15 Aug 2007 20:28:05 +0000
(16:28 -0400)
lib/rubyvote/condorcet.rb
patch
|
blob
|
history
diff --git
a/lib/rubyvote/condorcet.rb
b/lib/rubyvote/condorcet.rb
index 0b7a3062afce476f5711fe8ce471c61264d61a87..aaa504477373e07735b6eab9b7c847db0c68232a 100644
(file)
--- a/
lib/rubyvote/condorcet.rb
+++ b/
lib/rubyvote/condorcet.rb
@@
-217,6
+217,7
@@
class CloneproofSSDResult < CondorcetResult
def initialize(voteobj=nil)
super(voteobj)
@winners = self.cpssd()
+ @winners.delete nil
end
protected
@@
-224,7
+225,7
@@
class CloneproofSSDResult < CondorcetResult
def cpssd
votes = @election.votes
candidates = *@election.candidates
-
+
def in_schwartz_set?(candidate, candidates, transitive_defeats)
candidates.each do |challenger|
next if candidate == challenger
Benjamin Mako Hill
||
Want to submit a patch?