graph_from_func

graph_from_func#

tierkreis.core.utils.graph_from_func(name: str | FunctionName, func: FunctionDeclaration, input_map: dict[str, str] | None = None, output_map: dict[str, str] | None = None) TierkreisGraph[source]#

Build a graph with a single function node. If (input_map/output_map) is provided keys of the map which are (inputs/outputs) to the function are connected to the value as the (input/output) to the graph. For any missing keys, the same port name as the function is used.