Commit a1a14599 authored by Kučera Petr RNDr. Ph.D.'s avatar Kučera Petr RNDr. Ph.D.
Browse files

added TODO

parent e8c72926
......@@ -367,12 +367,15 @@ Loco::SectionGraph::NewSubgraphWithIds(std::vector<unsigned> sources,
std::vector<unsigned> targets) const
-> SGSubgraphCPtr
{
// TODO: Do it correctly according to doc/poznamky.md
// (Not necesssary now with the trivial data we currently have)
if (sources.empty() || targets.empty())
{
return std::make_shared<const SGSubgraph>(
sources, targets,
std::unordered_map<unsigned, SGSubgraph::NodeInfo>());
}
/*
std::cout << "sources:";
for (unsigned i : sources)
{
......@@ -385,6 +388,7 @@ Loco::SectionGraph::NewSubgraphWithIds(std::vector<unsigned> sources,
std::cout << " " << i;
}
std::cout << std::endl;
*/
// Run BFS from sources,
// Mark the nodes which have path from the source (CLOSED and TERMINAL at the
// end)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment