UNPKG

@euriklis/ds-architect

Version:

`@euriklis/ds-architect` is a modular and extensible library that provides a rich ecosystem for graph and network-based data structures. Designed with both academic rigor and practical application in mind, this library offers powerful graph algorithms and

30 lines (29 loc) 806 B
import type { Integer } from "../../../Types"; import { BSTDataNode } from "./BSTDataNode"; /** * Class representing an AVL tree data node. * Inherits from the BSTDataNode class. */ export declare class AVLDataNode<T = unknown> extends BSTDataNode<T> { /** * Balance factor of the AVL tree node. * @private * @type {Integer} */ private bf; /** * Creates an instance of AVLDataNode. * @param {T} data - Data to associate with the node. */ constructor(data?: T); /** * Gets the balance factor of the AVL tree node. * @returns {Integer} The balance factor. */ get balance(): Integer; /** * Sets the balance factor of the AVL tree node. * @param {Integer} n - The balance factor. */ set balance(n: Integer); }