Closed carlschroedl closed 7 years ago
Several of the methods in RankedPairsCalculator
used to accept a Graph
parameter. I thought that approach would make them easier to test. Writing tests revealed that I was wrong, so I removed those Graph
params from the methods in favor of relying on the instance variable $this->graph
and exposing the Graph
to tests through a new public getGraph
method;
This PR could also grow to address #49.
I added some tests and squashed some bugs in the RankedPairsGraph class.
This PR addresses part of #44.