rename cola -> d3adapter and refactor linklengths functions to ts