iota-0.1.0.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Graph.Tree.HLD

Synopsis

Documentation

data HLD Source #

Heavy-Light-Decomposition

Constructors

HLD 

Fields

Instances

Instances details
Show HLD Source # 
Instance details

Defined in Data.Graph.Tree.HLD

Methods

showsPrec :: Int -> HLD -> ShowS #

show :: HLD -> String #

showList :: [HLD] -> ShowS #

lcaHLD :: HLD -> Vertex -> Vertex -> Vertex Source #

O(log V)

pathHLD :: HLD -> Vertex -> Vertex -> [(HLDIndex, HLDIndex)] Source #

O(log V)