cutcutcodec.core.compilation.graph_to_tree.graph_to_tree¶
- cutcutcodec.core.compilation.graph_to_tree.graph_to_tree(graph: MultiDiGraph) ContainerOutput[source]¶
Create the dynamic tree from the assembly graph.
The abstract dynamic tree alows the evaluation of the complete pipeline.
Parameters¶
- graphnetworkx.MultiDiGraph
The assembly graph.
Returns¶
- container_outcutcutcodec.core.classes.container.ContainerOutput
An evaluable multimedia muxer.
Examples¶
>>> from cutcutcodec.core.classes.container import ContainerOutput >>> from cutcutcodec.core.compilation.graph_to_tree import graph_to_tree >>> from cutcutcodec.core.compilation.tree_to_graph import tree_to_graph >>> from cutcutcodec.core.generation.audio.noise import GeneratorAudioNoise >>> tree = tree_to_graph(ContainerOutput(GeneratorAudioNoise(0).out_streams)) >>> graph_to_tree(tree) <cutcutcodec.core.classes.container.ContainerOutput object at ...> >>>