Skip to content

Additional query functions; additional graph construction functions; switch to set of edges #10

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

colehaus
Copy link

There are a lot of changes bundled together. I'm happy to split these into separate PRs if that's helpful, but I thought I'd put it all out for discussion first.

@colehaus
Copy link
Author

colehaus commented Jun 3, 2019

FYI, I don't think the Travis failure has much to do with the changes here. The message is Unknown value flushCrumbs in purescript-spec.

@prescientmoon
Copy link

why is this still not merged

@NickHu
Copy link

NickHu commented Jun 29, 2020

cc @garyb @paf31


-- | A graph with vertices of type `v`.
-- |
-- | Edges refer to vertices using keys of type `k`.
newtype Graph k v = Graph (Map k (Tuple v (List k)))
newtype Graph k v = Graph (Map k (Tuple v (Set k)))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents the possibility of having multiple edges between any pair of nodes!

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

Successfully merging this pull request may close these issues.

3 participants