Triordinal.DList
2.4.2
dotnet add package Triordinal.DList --version 2.4.2
NuGet\Install-Package Triordinal.DList -Version 2.4.2
<PackageReference Include="Triordinal.DList" Version="2.4.2" />
<PackageVersion Include="Triordinal.DList" Version="2.4.2" />
<PackageReference Include="Triordinal.DList" />
paket add Triordinal.DList --version 2.4.2
#r "nuget: Triordinal.DList, 2.4.2"
#:package Triordinal.DList@2.4.2
#addin nuget:?package=Triordinal.DList&version=2.4.2
#tool nuget:?package=Triordinal.DList&version=2.4.2
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 | Versions 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. |
-
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.