Scans `python_modules` with :py:func:`scan` and registers found providers
    in `graph`.

    `ignore` argument is passed through to :py:func:`scan`.

def scan_to_graph(python_modules, graph, ignore=tuple()):
    """
    Scans `python_modules` with :py:func:`scan` and registers found providers
    in `graph`.

    `ignore` argument is passed through to :py:func:`scan`.
    """
    def callback(specification, provider):
        graph.register_provider(specification, provider)
    scan(python_modules, callback, ignore=ignore)