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

#include <LINK/basic/ElementOps.h>

#ifdef __GNUC__
#undef DEFINE_TEMPLATE
#endif

#include <LINK/graph/HyperGraph.h>


typedef HyperGraph* _HyperGraph_;


//*********************************************************************
#ifdef __GNUC__
template class ElementOps<_HyperGraph_>;
#endif
int ElementOps<_HyperGraph_>::compareItems(const _HyperGraph_& e1, const _HyperGraph_& 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<_HyperGraph_>::displayItem(ostream& os, const _HyperGraph_& e)
{
	if (e)
		os << *e;
	else
		os << e;
	return os;
}
//*********************************************************************


