Utilities to compute AdjacencyGraphs, etc. More...
Functions | |
| void | Initialize () |
| Must be called before SimulateAndOverEdge() can be called! | |
| void | AddAdjacencies (const HexBoard &brd, AdjacencyGraph graph[BLACK_AND_WHITE]) |
| Computes AdjacencyGraphs for this board state using a default ConductanceValues object. | |
| void | SimulateAndOverEdge (const HexBoard &brd, AdjacencyGraph graph[BLACK_AND_WHITE]) |
| Tries to simulate the vc set obtained by anding over the edge by giving connections to cells near the edge. | |
Utilities to compute AdjacencyGraphs, etc.
| void ResistanceUtil::AddAdjacencies | ( | const HexBoard & | brd, | |
| AdjacencyGraph | graph[BLACK_AND_WHITE] | |||
| ) |
Computes AdjacencyGraphs for this board state using a default ConductanceValues object.
Definition at line 306 of file Resistance.cpp.
Referenced by WolveSearch::ComputeResistance(), and Resistance::Evaluate().
| void ResistanceUtil::Initialize | ( | ) |
Must be called before SimulateAndOverEdge() can be called!
Definition at line 300 of file Resistance.cpp.
| void ResistanceUtil::SimulateAndOverEdge | ( | const HexBoard & | brd, | |
| AdjacencyGraph | graph[BLACK_AND_WHITE] | |||
| ) |
Tries to simulate the vc set obtained by anding over the edge by giving connections to cells near the edge.
Definition at line 313 of file Resistance.cpp.
References VCBuilderParam::and_over_edge, HexBoard::Builder(), HexPointUtil::colorEdge1(), HexPointUtil::colorEdge2(), LogWarning(), VCBuilder::Parameters(), and WHITE.