Function routeTrees

Function Documentation

flat_hash_map<int, set<pair<int, int>>> routeTrees(flat_hash_map<int, vector<vector<int>>> &routes)

将逐源汇路径集合合并为每个线网的去重路由树。

Parameters:

routes – 原始线网编号到多条路径节点序列的映射。

Returns:

原始线网编号到路由树边集的映射。