This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#include "stdafx.h"
#include "Util/SpanningNode.h"
#include "Util/SpanningEdge.h"
namespace RBX {
// Having a parent edge == in the spanning tree
void SpanningNode::setEdgeToParent(SpanningEdge* edge)
{
edgeToParent = edge;
}
bool SpanningNode::lessThan(const IndexedTree* other) const
{
RBXASSERT(edgeToParent);
const SpanningNode* otherNode = rbx_static_cast<const SpanningNode*>(other);
RBXASSERT(otherNode->getConstEdgeToParent());
return edgeToParent->isLighterThan(otherNode->getConstEdgeToParent());
}
} // namespace