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
{{ message }}
Repository navigation
Wrong result from DigraphPath in the master branch #487
gap> # Check the value against the definition - wrong
gap> ForAll([1 .. Length(path[2])], i -> OutNeighbours(D)[path[1][i]][path[2][i]] = path[1][i + 1]);
false
gap> # Check whether the vertices are even correct (with just the edges being wrong) - no
gap> ForAll([1 .. Length(path[2])], i -> path[1][i + 1] in OutNeighbours(D)[path[1][i]]);
false
gap> # This is the first spot where it goes wrong
gap> First([1 .. Length(path[2])], i -> OutNeighbours(D)[path[1][i]][path[2][i]] <> path[1][i + 1]);
14
This is likely related to the recent changes to the depth-first search infrastructure, since DigraphPath uses a DFS.
D := DigraphFromDigraph6String("&~?@cHOVS]GbccT?a?SKpUJgDwKg@cA_?q?@lK@]T\\WeJR[_B@\
BBW?gdXHR?`?ELDHCcGCqMQvR@@HkQMg]PMI?gGj?GPAe[EhSI\\GofbGSbS_@o|G?~cJU_jccs?Oq\
`qo_OEK_b_V?KB_dJDRCE@rr??qAH]{?L@S@C?QOG?OOjOSP@W_GC@WqWcKQBPKIrUCy@pAGroA?SH\
ODuHE]ASLC@U}gbK?aHocGDKO`waOAyCFi`IC?G[_qKejmZSTCDLb?G@CPO`aG@`kkJKaADioq_jAL\
DqBhwaCQOaG@BB[??JzYtwAC_hBAJ`awCzeJCIgEu{NAhAkspoM__?@?]GziPCECWQ?EcO?ZGDgCgg\
Bgu?SA`?nAH`aqjDts?@OPesqC?YcGCfBQweULIB?GOh|IGGpWB`@wQcd[S@cR?K[KQLOS{RI[c]Ba\
nHdJoGCCOcaK\\aUH?@ofQclXRooh~mKt_jNDaaDB?IobkfO_ayIH_CyD_?KLIXk@aO_{_??okoueJ\
CSPD@pOFkpCIpWGGBf}OAw??wSAC}|^??BA?jDq?O?DyhAlsCUmIe@iSD?QEBo_?kDLMHhWYlEpC_W\
tAEGJMkMUOd?dYbof?Qafx@m?RsJrg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nt[OxPdRjDC?PhS}nL?m|B_")
F := UndirectedSpanningTree(D);
Error, List Element: <list>[3] must have an assigned value in
if record.parent[record.current] <> record.current then
Add( data[record.parent[record.current]], record.current );
Add( data[record.current], record.parent[record.current] );
fi; at /Users/jdm/gap/pkg/digraphs/gap/attr.gi:2298 called from
ExecuteDFS_C( record, data, start, PreOrderFunc, PostOrderFunc, AncestorFunc,
CrossFunc ); at /Users/jdm/gap/pkg/digraphs/gap/oper.gi:2309 called from
ExecuteDFS( record, data, i, PreOrderFunc, DFSDefault, DFSDefault, DFSDefault
); at /Users/jdm/gap/pkg/digraphs/gap/attr.gi:2302 called from
UndirectedSpanningForest( D ) at /Users/jdm/gap/pkg/digraphs/gap/attr.gi:2348 called from
<function "UndirectedSpanningTreeAttr for an immutable digraph">( <arguments> \
)
called from read-eval loop at *stdin*:13
type 'quit;' to quit to outer loop
I'm going to close this issue. The ExecuteDFS stuff no longer exists in the master branch; however, the master branch does now contain the test at the top of this issue, which was failing. Therefore this problem can't work its way back into the master branch.
Re-adding a fixed version of this stuff is #499, so I don't think there's a need for this issue any longer.
Activity
james-d-mitchell commentedon Sep 30, 2021
Another example:
james-d-mitchell commentedon Sep 30, 2021
Wait this problem only exists in the DFS branch moving the comment over there...
wilfwilson commentedon Oct 27, 2021
I'm going to close this issue. The
ExecuteDFSstuff no longer exists in the master branch; however, the master branch does now contain the test at the top of this issue, which was failing. Therefore this problem can't work its way back into the master branch.Re-adding a fixed version of this stuff is #499, so I don't think there's a need for this issue any longer.