@staticmethod
    def clean(conn, labels=None, group=None):
        links = parse_links(conn)
        nodes = parse_nodes(conn)

        outdict = {'links': links, 'nodes': nodes}

        outdict = add_property(outdict, labels, 'labels')
        outdict = add_property(outdict, group, 'group')

        return outdict
Visualize a sparse adjacency matrix.
dataset/ETHPy150Open lightning-viz/lightning-python/lightning/types/plots.py/Adjacency.clean