compass.common.base.setup_graph_no_nodes#
- setup_graph_no_nodes(d_tree_name='Unknown Decision Tree', **kwargs)[source]#
Setup a graph with no nodes
This function is used to set keywords on the graph that can be used in text prompts on the graph nodes.
- Parameters:
d_tree_name (
str
, default"Unknown Decision Tree"
) – Name of the decision tree being set up (used for logging). By default, “Unknown Decision Tree”.**kwargs – Keyword-value pairs to add to graph.
- Returns:
nx.DiGraph
– Graph with no nodes but with global keywords set.