Internals: New Hashed/Graph functions towards msg980.

Signed-off-by: Wilson Snyder <[email protected]>
This commit is contained in:
Varun Koyyalagunta
2013-02-19 18:49:36 -05:00
committed by Wilson Snyder
parent 772a3a97eb
commit f2fb77c15a
4 changed files with 36 additions and 3 deletions
+8
View File
@@ -140,6 +140,14 @@ V3GraphEdge::V3GraphEdge(V3Graph* graphp,
inPushBack();
}
V3GraphEdge* V3GraphEdge::relinkFromp(V3GraphVertex* newFromp) {
V3GraphEdge *oldNxt = outNextp();
m_outs.unlink(m_fromp->m_outs, this);
m_fromp = newFromp;
outPushBack();
return oldNxt;
}
void V3GraphEdge::unlinkDelete() {
// Unlink from side
m_outs.unlink(m_fromp->m_outs, this);