            if (!remaining[key].hide) {
                        existing[key] = remaining[key];
                    }
                    } else {
                    acc[key] = remaining[key];
                    }
                    return acc;
                    }, {});
                    return existing, n_remaining;
                    }

                    function filterLocalGraphData(graphData, depth) {
                    if (graphData == null) {
                    return null;
               