graph.graph_base.as_GraphHolder

graph.graph_base.as_GraphHolder(g: GraphModule) GraphHolder[source]

Encapsulate a GraphModule inside a GraphHolder

This function takes an existing GraphModule and wraps it in a GraphHolder module, by using the input and output nodes of the existing module.

Parameters:

g (GraphModule) – A GraphModule to encapsulate

Returns:

A GraphHolder encapsulating g

Return type:

GraphHolder