-
Notifications
You must be signed in to change notification settings - Fork 53
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
ufold causes unexpected results #24
Comments
What is Note that |
Why does
|
Because it's a fold: just like What are you trying to find? The last node that has an out-going weight of If so, I would use a variant of your first one: consistency :: DTMC -> Maybe Node
consistency dtmc = listToMaybe . filter ((==1) . sum . map edgeLabel . out dtmc)
$ nodes dtmc Note that performance-wise, if all you want is the |
Is this issue still relevant? |
No. |
I expected the following two functions to be equivalent but ufold gives strange answers. Specifically, the context was missing self-loops and incoming edges, am I misusing ufold here?
The text was updated successfully, but these errors were encountered: