src/c++/lib/paragraph/HaplotypePaths.cpp
// Returns a string with all nodeIDs in a path
Returns a string with all nodeIDs in a path
Returns a string with all nodeIDs in a path
string pathIds(Path const& path)
{
    auto const& nodes = path.nodeIds();
    return std::accumulate(
        std::next(nodes.begin()), nodes.end(), std::to_string(nodes[0]),
        [](std::string const& a, int b) { return a + '-' + std::to_string(b); });
}
string pathIds ( Path const & path ) { auto const & nodes = path . nodeIds ( ) ; return std :: accumulate ( std :: next ( nodes . begin ( ) ) , nodes . end ( ) , std :: to_string ( nodes [ 0 ] ) , [ ] ( std :: string const & a , int b ) { return a + ' ' + std :: to_string ( b ) ; } ) ; }
Returns a string with all nodeIDs in a path
Returns a string with all nodeIDs in a path