def depends_on(options, **kwargs):
    """
    Analysis function

    Get list of files that depend on given configs
    If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg
    """
    include_graph = options['include_graph']

    include_graph.render('full_graph')

    result = None

    if 'graph' in kwargs:
        name = kwargs['graph']
        del kwargs['graph']

        result = _Result(kwargs)

        dep_graph = build_dependency_graph(include_graph, **kwargs)

        dep_graph.render(name)

        result.add_result("Rendered dep graph at {}".format(name))

    else:
        result = _Result(kwargs)

        dep_graph = build_dependency_graph(include_graph, **kwargs)

        for node, edges in dep_graph:
            if node not in kwargs:
                result.add_result(node)

    return result
Analysis function

    Get list of files that depend on given configs
    If there is 'graph=name' in analysis parameters, instead graph of includes will be rendered into name.svg