This snippet input a linkage matrix then output a map form node index to its leaves
Author: CHEN junyi junyichen8-c@my.cityu.edu.hk
License: BSD 3 clause
A function to parse a linkage matrix to a dictionary which map an internal node to its leaves
Python
This snippet input a linkage matrix then output a map form node index to its leaves
Author: CHEN junyi junyichen8-c@my.cityu.edu.hk
License: BSD 3 clause