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

DynGraph contraint seems redundant in prettify #100

Closed
yaitskov opened this issue Nov 19, 2021 · 0 comments
Closed

DynGraph contraint seems redundant in prettify #100

yaitskov opened this issue Nov 19, 2021 · 0 comments

Comments

@yaitskov
Copy link

-- | Pretty-print the graph.  Note that this loses a lot of
--   information, such as edge inverses, etc.
prettify :: (DynGraph gr, Show a, Show b) => gr a b -> String
prettify g = foldr (showsContext . context g) id (nodes g) ""
  where
    showsContext (_,n,l,s) sg = shows n . (':':) . shows l
                                . showString "->" . shows s
                                . ('\n':) . sg
athas added a commit that referenced this issue Oct 17, 2023
@athas athas closed this as completed in 5753deb Oct 17, 2023
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