We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Supporting a Topological sort function could be useful.
I've seen an implementation having this signature in some other code:
/// <summary> /// Topological Sorting (Kahn's algorithm) /// </summary> /// <remarks>https://en.wikipedia.org/wiki/Topological_sorting</remarks> /// <typeparam name="T"></typeparam> /// <param name="nodes">All nodes of directed acyclic graph.</param> /// <param name="edges">All edges of directed acyclic graph.</param> /// <returns>Sorted node in topological order.</returns> public static List<T>? TopologicalSort<T>(HashSet<T> nodes, HashSet<Tuple<T, T>> edges) where T : IEquatable<T>
Not sure if this is a fit for SuperLinq, but maybe worth considering.
The text was updated successfully, but these errors were encountered:
viceroypenguin
No branches or pull requests
Supporting a Topological sort function could be useful.
I've seen an implementation having this signature in some other code:
Not sure if this is a fit for SuperLinq, but maybe worth considering.
The text was updated successfully, but these errors were encountered: