Topological sort: Difference between revisions
m
→{{header|C++}}: Renamed variables, for clarity
m (→{{header|C++}}: Minor reorder of operations) |
m (→{{header|C++}}: Renamed variables, for clarity) |
||
Line 686:
{
auto const&
if(
sorted.push_back(
}
for(std::size_t index = 0; index < sorted.size(); ++index)
for(auto const&
if(--map[
sorted.push_back(
for(auto const& lookup : map)
{
auto const&
if(
unsortable.push_back(
}
}
|