Module Tree_layout__.Layered
val layout : ?m:(module Stdlib.Hashtbl.HashedType with type t = 'a) -> children:('a -> 'a array) -> distance:('a -> 'a -> float) -> 'a -> 'a -> Tree_layout.Common.poslayout ~children ~distance g vreturns the layered layout for the treegrooted inv. Layered layout are such that vertices with the same depth have the same vertical coordinate. The layout is returned as a lookup functions from trees to positions.This algorithm is in linear time if
childrenis constant time. UseMakefor a more flexible implementation.distance v1 v2should return the horizontal distance betweenv1andv2placed at the same depth.- parameter m
An hashing specification for the tree type. If not provided, polymorphic comparison and hashing are used.
- parameter children
Return all the subtrees of a tree.
- see http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.16.8757
Improving Walker's Algorithm to Run in Linear Time
Functorized API
module type S = sig ... endThe output signature for the layered layout engine.