Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loopcount for DiGraph does not work #43

Open
general-rishkin opened this issue Sep 14, 2023 · 0 comments
Open

loopcount for DiGraph does not work #43

general-rishkin opened this issue Sep 14, 2023 · 0 comments

Comments

@general-rishkin
Copy link

The following code to obtain the loop count of a digraph fails. none of the suggestions from the error words. the FGraph version works fine.

let mutable lg: DiGraph<int, float> = 
  DiGraph.createFromEdges [| (0, 2, 1.0); (0, 1, 1.0)|]
  |> DiGraph.addEdge (1, 2, 1.0)
  |> DiGraph.addEdge (0, 1, 1.0)

Measures.Loop.loopCount lg

typecheck error Value restriction. The value 'it' has been inferred to have generic type
val it: '_a
Either define 'it' as a simple data term, make it a function with explicit arguments or, if you do not intend for it to be generic, add a type annotation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant