Skip to content

Simplify API #5

Description

Something like

sorted(fifo, edges);
sorted(lifo, edges);
sorted(Array, edges);
sorted(() => new Heap(increasing), edges);

Kahn's algo needs {push, pop/shift, isEmpty/length/size}. The convenience wrapper needs to build a queue from the set of free vertices. Currently done with push, but could be done with from.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions