Triordinal.DList 2.4.2

dotnet add package Triordinal.DList --version 2.4.2
                    
NuGet\Install-Package Triordinal.DList -Version 2.4.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Triordinal.DList" Version="2.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Triordinal.DList" Version="2.4.2" />
                    
Directory.Packages.props
<PackageReference Include="Triordinal.DList" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Triordinal.DList --version 2.4.2
                    
#r "nuget: Triordinal.DList, 2.4.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Triordinal.DList@2.4.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Triordinal.DList&version=2.4.2
                    
Install as a Cake Addin
#tool nuget:?package=Triordinal.DList&version=2.4.2
                    
Install as a Cake Tool

Triordinal.DList

The list shared by Triordinal's DTree and DGraph: a doubly linked list of names with rational positions, so that "does a come before b?" is a single comparison, O(1).

dotnet add package Triordinal.DList

A new element gets the mediant of its neighbors, so normally no other element moves. Positions are pairs of 64-bit integers. Only when a mediant cannot be stored, its denominator or numerator exceeding 2^61, is the smallest surrounding region with enough room renumbered with fractions k/2^20 (the same bounds as the Python reference); larger regions must be sparser before they are accepted (as in Bender et al., ESA 2002). A block of cells that is cut and pasted elsewhere is placed as a whole and renumbers a region only if it does not fit. Rational positions were Enis Olgac's idea. Namespace Triordinal.

new DList("Q", Positions.Integer) gives integer positions instead: midpoints in [0, 2^62], as in classical order maintenance, relabeled with the same density rule. They are faster to compare; rational positions are renumbered far less often.

A list may also hold unnamed cells, which have a position but no name; enumeration, Next/Prev and all lookups by name pass over them. DTree uses them as the closing cells that mark the end of each subtree.

Most users install Triordinal.DTree (or later Triordinal.DGraph), which pulls this package in. MIT License.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Triordinal.DList:

Package Downloads
Triordinal.DTree

DTree (part of Triordinal): incremental encoding of the topology of directed trees by two projections (Q1, Q2): O(1) reachability, and/or queries on the topology of the tree, dynamic (incremental) updates.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.4.2 53 11/20/2026
2.4.1 109 11/14/2026
2.4.0 109 11/14/2026
2.3.0 128 10/30/2026
2.2.0 117 10/30/2026
2.1.0 116 10/29/2026
2.0.0 115 10/29/2026