lctree
Rust implementation of Link-Cut-Tree: self-balancing data structure to maintain a forest of rooted trees through linking and cutting edges.
Example
This example shows how to link and cut edges:
use LinkCutTree;
License
Copyright 2019-2024 Kayumov Abduaziz.
Licensed under Apache License, Version 2.0 (the "License"); you may not use this crate except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See LICENSE for the specific language governing permissions and limitations under the License.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.