Skip to main content
CycleDetection package icon

CycleDetection

This is a fork of Daniel Bradley's C# implementation of the Tarjan cycle detection algorithm. (https://github.com/danielrbradley/CycleDetection) You can use this library to sort dependencies and even handle cyclic references. e.g. to compile stuff in the right order. I found it to be quite useful but I didn't like how one had to manually setup the dependency vertices. (It also supports custom comparers now.) So I moved the original code into the Core sub namespace and wrote a class that allows to setup dependencies using a simple lambda expression.

Total Downloads
7.8M
7,844,113
Published
Mar 8, 2019
Latest stable version

Install

.NET CLI
dotnet add package CycleDetection --version 2.0.0
Package Manager Console
Install-Package CycleDetection -Version 2.0.0
PackageReference
<PackageReference Include="CycleDetection" Version="2.0.0" />

Frameworks

.NETFramework4.0 .NETFramework4.5 .NETStandard1.0 .NETStandard1.1 .NETCoreApp2.0

Dependencies

[1.5.0, )
NETStandard.Library
.NETStandard1.0
[1.6.1, )
[1.5.0, )
NETStandard.Library
.NETStandard1.1
[1.6.1, )
[1.5.0, )
[1.5.0, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.