seems to work with struct weight_node dictionnary
may be working with structure weight_node , need to implement a method to backtrack path.