Skip to content

Trivial Minimum Cycle Ratio Failing #599

Description

@Andful

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions