示例#1
0
int Edge::operator<(Edge e) {
	if(v1 < e.GetVertexIndex(0))
		return true;

	else if(v1 == e.GetVertexIndex(0) && v2 < e.GetVertexIndex(1))
		return true;

	return false;
}
示例#2
0
int Edge::operator==(Edge e) {
	if(v1 == e.GetVertexIndex(0) && v2 == e.GetVertexIndex(1))
		return true;

	return false;
}