Topological sort/Extracted top item: Difference between revisions
Topological sort/Extracted top item (view source)
Revision as of 08:34, 16 October 2022
, 1 year ago→{{header|Pascal}}: some code correction
(Pascal draft) |
m (→{{header|Pascal}}: some code correction) |
||
Line 836:
end;
begin
if not g.ContainsKey(aTarget) then exit([aTarget]);
Stack := TList<string>.Create;
Visited := THashSet<string>.Create;
|