Skip to content

Commit

Permalink
emit also node length
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Dec 4, 2023
1 parent b6260c3 commit 36b1220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/paths_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ int main_paths(int argc, char** argv) {
}

// Emit non-reference nodes
std::cout << "#node.id\tpaths" << std::endl;
std::cout << "#node.id\tnode.len\tpaths" << std::endl;
for (auto x : non_reference_nodes) {
const handle_t handle = graph.get_handle(x + shift);

Expand All @@ -433,7 +433,7 @@ int main_paths(int argc, char** argv) {
result += graph.get_path_name(path);
}

std::cout << graph.get_id(handle) << "\t" << result << std::endl;
std::cout << graph.get_id(handle) << "\t" << graph.get_length(handle) << "\t" << result << std::endl;
}
} else {
// Emit non-reference ranges
Expand Down

0 comments on commit 36b1220

Please sign in to comment.