pgr_hawickUniqueCircuits: new functionality

未关闭
#3,171 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

@cvvergara 已经在做这个了。

开始于 2026年10月31日。

  • #3181 来自 @cvvergara —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, postgresql

调研方向

Read the plan in #3170 and compare the requested behavior with Boost's hawick_unique_circuits and hawick_circuits functionality. The issue does not name implementation files or tests, so first locate the existing Hawick circuits entry point and its tests. Done means adding pgr_hawickUniqueCircuits with canonical circuit handling and the listed optional filters.

由索引模型根据 Issue 内容生成。

描述

circuits Functionality Request

pgr_hawickUniqueCircuits: new functionality

Boost has

  • boost::hawick_unique_circuits
  • boost::hawick_circuits

The function name match the equivalent functionality that boost::hawick_unique_circuits offers.
(provided previously by the wrongly named boost::hawick_circuits

Given that we base the code on boost we need to provide the equivalent functionality:

  • Privode all the canonical circuits, excluding the duplicate ones due to parallel edges.

Additionally we can add new parameters to limit the output:

  • start_vid and start_vids to list all circuits where the vertices participate on.
  • min_depth and max_depth to limit the size of the circuits. (canonical or vertex oriented)
  • self_loops boolean to include or not the self loops regardless of the depth limits
  • u_turn_on_edge boolean to have
    • when true 2 edge u turns using the same edge or
    • when false whenever possible get 2 edge u turns that do not use the same edge: if not possible 2 edge u turns using the same edge will be used.

Plan:

  • #3170
  • Create pgr_hawickUniqueCircuits to match:
    • the equivalent functionality that boost offers with the function name.
主要语言
C++
星标
1.4k
派生
397
平均合并
2 天 2 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pgRouting/pgrouting 的其他 Issue

查看 pgRouting/pgrouting 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。