#!/usr/bin/env python
# -*- coding: utf-8 -*-

import networkx as nx


def filter_graph(graph: nx.Graph, unit) -> nx.Graph:
    '''
    '''
    assert graph
    assert unit
    # TODO
    return graph
