https://github.com/nachinius/linkcuttrees
  
  
    Link Cut Tree for fast path aggregation calculation on trees and graphs 
    https://github.com/nachinius/linkcuttrees
  
data-structure data-structures-algorithms paths scala tree
        Last synced: 17 days ago 
        JSON representation
    
Link Cut Tree for fast path aggregation calculation on trees and graphs
- Host: GitHub
- URL: https://github.com/nachinius/linkcuttrees
- Owner: nachinius
- License: apache-2.0
- Created: 2018-02-14T18:36:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T07:28:35.000Z (about 2 years ago)
- Last Synced: 2025-09-02T01:09:36.539Z (about 2 months ago)
- Topics: data-structure, data-structures-algorithms, paths, scala, tree
- Language: Scala
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
- 
            Metadata Files:
            - Readme: Readme.md
- License: LICENSE
 
Awesome Lists containing this project
README
          [](https://travis-ci.org/nachinius/LinkCutTrees)
[](https://codecov.io/gh/nachinius/LinkCutTrees)
[](https://coveralls.io/github/nachinius/LinkCutTrees?branch=master)
[](https://gitter.im/LinkCutTrees/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://index.scala-lang.org/nachinius/linkcuttrees/linkcuttrees)
# Link Cut Trees
A collection of trees
with operations **O(lg n)** per operation (amortized)
- maketree
- link(v,w)
- cut(v)
- findroot(v)
- pathaggregate(v)
# Ref
[1] https://en.wikipedia.org/wiki/Link/cut_tree