export function actionCopyEntities(ids, fromGraph) {
    var copies = {};


    var action = function(graph) {
        ids.forEach(function(id) {
            fromGraph.entity(id).copy(fromGraph, copies);
        });

        for (var id in copies) {
            graph = graph.replace(copies[id]);
        }

        return graph;
    };


    action.copies = function() {
        return copies;
    };


    return action;
}
