Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Nov 19 12:39:56 PST 2003
--------------------------------------------------*/
#include <iostream>
#include "MyNode.h"
using namespace std;

/*--------------------------------------------------
 Contract: equalCost : MyNode MyNode -> bool
 Purpose: Return true if the costs in the two MyNodes
         node1 and node2 are equal --- return false
         otherwise.

 Examples: if nodeA has cost 3, nodeB has cost 3, and
          nodeC has cost 5, then:
          equalCost(nodeA, nodeB) == true
          equalCost(nodeA, nodeC) == false
--------------------------------------------------*/
bool equalCost(MyNode node1, MyNode node2)
{
    return (node1.cost == node2.cost);
}