graph¶
Construction and Manipulation of Package/Recipe Graphs
Functions
|
Returns the DAG of recipe paths and a dictionary that maps package names to lists of recipe paths to all defined versions of the package. |
|
|
|
|
|
Reduces dag to packages in names and their requirements |
Documentation
- bioconda_utils.graph.build(recipes, config, blacklist=None, restrict=True)[source]¶
Returns the DAG of recipe paths and a dictionary that maps package names to lists of recipe paths to all defined versions of the package. defined versions.
- Parameters:
recipes (iterable) – An iterable of recipe paths, typically obtained via
get_recipes()
blacklist (set) – Package names to skip
restrict (bool) – If True, then dependencies will be included in the DAG only if they are themselves in
recipes
. Otherwise, include all dependencies ofrecipes
.
- Returns:
dag (nx.DiGraph) – Directed graph of packages – nodes are package names; edges are dependencies (both run and build dependencies)
name2recipe (dict) – Dictionary mapping package names to recipe paths. These recipe path values are lists and contain paths to all defined versions.