graph.graph_base.as_GraphHolder
- graph.graph_base.as_GraphHolder(g: GraphModule) GraphHolder [source]
Encapsulate a
GraphModule
inside aGraphHolder
This function takes an existing
GraphModule
and wraps it in aGraphHolder
module, by using the input and output nodes of the existing module.- Parameters:
g (GraphModule) – A
GraphModule
to encapsulate- Returns:
A
GraphHolder
encapsulatingg
- Return type: