///scratch/berryj/link/new_link/link/bin/instantiate "-t" "UBinGraph*" "-I" "LINK/graph/UBinGraph.h" "-d" "graph" 
#ifdef __GNUC__
#define DEFINE_TEMPLATE
#endif

#include <LINK/basic/ElementOps.h>

#ifdef __GNUC__
#undef DEFINE_TEMPLATE
#endif

#include <LINK/graph/UBinGraph.h>


typedef UBinGraph* _UBinGraph_;


//*********************************************************************
#ifdef __GNUC__
template class ElementOps<_UBinGraph_>;
#endif
int ElementOps<_UBinGraph_>::compareItems(const _UBinGraph_& e1, const _UBinGraph_& e2) 
{
	if (e1 && e2)  {
		if (*e1 == *e2)
			return 0;
		else
			return (*e1<*e2)? -1 : 1;
	} else {
		if (e1 == e2)
			return 0;
		else
			return (e1<e2)? -1 : 1;
	}
}

ostream& ElementOps<_UBinGraph_>::displayItem(ostream& os, const _UBinGraph_& e)
{
	if (e)
		os << *e;
	else
		os << e;
	return os;
}
//*********************************************************************


