Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Trivial Minimum Cycle Ratio Failing

Đang mở
#599 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
data

Hướng nghiên cứu

Start with the failing example in commit a56dccbd411acd84f04c64d796b871b4e4bd9598 and the howard_cycle_ratio algorithm, then run the single-self-loop graph from the report. Done means the reproducer reports 6410/2 (3205) instead of +Inf.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Before filing
  • I searched the existing issues and did not find a duplicate.
  • I have reproduced the bug against the develop branch or the latest Boost release.
  • I have a minimal reproducer (or I will paste my full failing code below).
Boost version

1.93 (hash: bf5e43e0850af9381fc880248ebab801e17c41d8)

Compiler family
  • GCC / g++
  • Clang / clang++
  • MSVC (Visual Studio)
  • Intel / oneAPI
  • Other (specify below)

g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

Standard library
  • libstdc++
  • libc++ (I am not certain)
  • MSVC STL
  • Other (specify below)
Operating system
  • Linux
  • macOS
  • Windows
  • Other (specify below)
Kind of component affected
  • Graph data structure (e.g. adjacency_list, adjacency_matrix)
  • Algorithm (e.g. dijkstra_shortest_paths, breadth_first_search)
  • Property map
  • I/O or file-format reader (e.g. read_graphml, read_graphviz)
  • Visitor / event hooks
  • Other (specify below)

Affected component: howard_cycle_ratio

Steps to reproduce

Commit a56dccbd411acd84f04c64d796b871b4e4bd9598 in Andful/graph adds the failing example.

The example being:

digraph G {
  a->a  [w1=6410, w2=2];
}

I.e. a single self-loop with cost 6410 and time of 2.

The case originates from a MCR benchmark.

Expected behavior

The minimum cycle ratio should be 6410/2 (i.e. 3205)

Actual behavior

The reported minimum cycle ratio is +Inf

Are you willing to help?
  • I'd like to submit a fix as a pull request.
  • I can help diagnose or test a candidate fix.
  • I'm only reporting the issue.
Ngôn ngữ chính
C++
Star
396
Fork
244
Merge trung bình
2 ngày 6 giờ
Pull request đã merge (30 ngày)
29

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của boostorg/graph

Tất cả issue của boostorg/graph

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.