   obj.removed_nodes = window.cy.$('node[[degree<1]]').remove();
                    }
                    else {
                        obj.removed_nodes.restore();
                        obj.eles.restore();
                        obj.eles = 'none';
                    }
                    window.cy.resize();
                    window.cy.fit();
                });
            }
            {% for t in edge_list %}
                createNewFilter("filter_{{ t }}", 'edge[interactionType *= \'{{ t }}\']'