You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 1st approach differed a bit from the OP's "check format mask, whether set for both formats" suggestion:
if (wv.second->visibility == 1)
new HGEdge(wv.second, HGEdge::collapsed, numthreads);
elseif (wv.second->incident_c_edges.front()->format == wv.second->incident_t_edges.back()->format)
new HGEdge(wv.second, HGEdge::collapsed | HGEdge::traveled, numthreads);
else// yadda yadda
Failed because:
• AK2@+SuzAve gets processed first.
• It's hidden and in use. Thus it gets collapsed into a collapsed edge, but not a traveled edge.
• +X235384 is adjacent.
• It loses AK AK2 +SuzAve +X235384 from the front of its incident_c_edges list.
• AK AK2 +X235384 GolRd, still formatted SCT, becomes the new front.
• Its incident_t_edges list stays intact.
• AK AK2 +X235384 GolRd, still formatted SCT, remains at the back.
• wv.second->incident_c_edges.front() == wv.second->incident_t_edges.back(); IOW,
• wv.second->incident_c_edges.front()->format == wv.second->incident_t_edges.back()->format
• One dual-format edge is created, when we should instead create two single-format edges
• Wacky antics ensue.
works, per the OP.
Even if (HGEdge::collapsed | HGEdge::traveled) is optimized to a constant by the compiler, we still have 5 logical operators + 2 -> dereference operators to get our format.
No-build uses 7 operators iff we need to use ||. Call it... 4 (including ||) otherwise?
One trial run had experimental @ 1.9s with no-build @ 1.8s. Good enough for me. No-build it is.
WRT intersection-only graphs, that's no longer a priority for me, as Jim's already implemented it as part of the graph archival process, rather than in every site update. I'm not too keen on adding more complexity to the graph generation process when it already performs so poorly on FreeBSD.
The upcoming pull request for TMBitset-based subgraph generation will close this issue.
Activity
yakra commentedon Feb 13, 2021
Tried 2 different approaches that don't work. Time to waste a load of time figuring out why.
yakra commentedon Feb 13, 2021
The 1st approach differed a bit from the OP's "check format mask, whether set for both formats" suggestion:
Failed because:
• AK2@+SuzAve gets processed first.
• It's hidden and in use. Thus it gets collapsed into a collapsed edge, but not a traveled edge.
• +X235384 is adjacent.
• It loses
AK AK2 +SuzAve +X235384from the front of its incident_c_edges list.•
AK AK2 +X235384 GolRd, still formatted SCT, becomes the new front.• Its incident_t_edges list stays intact.
•
AK AK2 +X235384 GolRd, still formatted SCT, remains at the back.• wv.second->incident_c_edges.front() == wv.second->incident_t_edges.back(); IOW,
• wv.second->incident_c_edges.front()->format == wv.second->incident_t_edges.back()->format
• One dual-format edge is created, when we should instead create two single-format edges
• Wacky antics ensue.
yakra commentedon Feb 14, 2021
works, per the OP.
Even if
(HGEdge::collapsed | HGEdge::traveled)is optimized to a constant by the compiler, we still have 5 logical operators + 2->dereference operators to get our format.No-build uses 7 operators iff we need to use
||. Call it... 4 (including||) otherwise?One trial run had experimental @ 1.9s with no-build @ 1.8s. Good enough for me.
No-build it is.
yakra commentedon Jul 31, 2021
This part of the code will need a rethink for TravelMapping/EduTools#156.
yakra commentedon Feb 18, 2024
yakra commentedon May 3, 2024
I think I has the solution!
DataProcessing/siteupdate/cplusplus/classes/GraphGeneration/HighwayGraph.cpp
Line 92 in 49a4d2d
Or, with a bit more context.
WRT intersection-only graphs, that's no longer a priority for me, as Jim's already implemented it as part of the graph archival process, rather than in every site update. I'm not too keen on adding more complexity to the graph generation process when it already performs so poorly on FreeBSD.
The upcoming pull request for TMBitset-based subgraph generation will close this issue.