concepts.dm.crow.planners.regression_dependency.RegressionDependencyGraph#

class RegressionDependencyGraph[source]#

Bases: object

Methods

add_node(node)

connect(x, y)

Connect two nodes in the dependency graph.

get_node_ranks()

print([i, indent_level])

render_graphviz([filename])

Render the dependency graph using graphviz.

sort_nodes_into_levels()

Attributes

__init__(scopes)[source]#
Parameters:

scopes (Dict[int, dict])

__new__(**kwargs)#
add_node(node)[source]#
Parameters:

node (RegressionTraceStatement)

Return type:

RegressionDependencyGraph

connect(x, y)[source]#

Connect two nodes in the dependency graph. x is the “parent” of y.

Parameters:
Return type:

RegressionDependencyGraph

get_node_ranks()[source]#
print(i=0, indent_level=0)[source]#
Parameters:
Return type:

None

render_graphviz(filename=None)[source]#

Render the dependency graph using graphviz.

Parameters:

filename (str | None)

Return type:

None

sort_nodes_into_levels()[source]#
edges: Dict[int, List[int]]#
node2index: Dict[int, int]#
nodes: List[RegressionTraceStatement]#