class LCA(Edge, Edge2)

Defined in:

graph/lca.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(graph : Graph(Edge, Edge2), root : Int32) #

[View source]

Instance Method Detail

def depth(v : Int32) : Int32 #

[View source]
def depth : Array(Int32) #

[View source]
def dist(u : Int32, v : Int32) : Int32 #

[View source]
def graph : Graph(Edge, Edge2) #

[View source]
def lca(u : Int32, v : Int32) : Int32 #

[View source]
def log2 : Int32 #

[View source]
def parent(v : Int32, up : Int32) : Int32? #

[View source]
def parent(v : Int32) : Int32? #

[View source]
def parent!(v : Int32, up : Int32) : Int32 #

[View source]
def parent!(v : Int32) : Int32 #

[View source]
def parent_p2(v : Int32, k : Int32) : Int32? #

[View source]
def parent_p2!(v : Int32, k : Int32) : Int32 #

[View source]
def path(start : Int32, goal : Int32, &) : Nil #

[View source]
def path(start : Int32, goal : Int32) : Array(Int32) #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]