#include "node.h"


//****************************************************************************
//
// Function:   Node
//
// Purpose:    constructor
//
// Parameters: in_from - where the edge starts
//             in_to - where the edge ends
//             in_cost - cost to build that edge
//
// Calls:      none
//
// Time Comp:  O(1)
//
// Space Com:  O(1)
//
//****************************************************************************


Node::Node(size_t in_from, size_t in_to, double in_cost)
{
   from = in_from;
   to = in_to;
   cost = in_cost;
}


//****************************************************************************
//
// Function:   <
//
// Purpose:    less than operator
//
// Parameters: rop - right side of operator
//
// Calls:      none
//
// Time Comp:  O(1)
//
// Space Com:  O(1)
//
//****************************************************************************



bool Node::operator <(const Node& rop)const
{
   return (cost < rop.cost);
}