function nodeToResultStruct = generateOutputResultStruct(~, nodeToResultMap)
    % GENERATEOUTPUTRESULTSTRUCT
    
    % Copyright 2018 The MathWorks, Inc.
    
    keys = nodeToResultMap.keys;
    values = nodeToResultMap.values;
    nodeToResultStruct = struct;
    nodeToResultStruct.treeIds = keys;
    nodeToResultStruct.results = values;
end