finesse.script.graph.KatGraph

Overview

class finesse.script.graph.KatGraph(incoming_graph_data=None, **attr)[source]

Bases: DiGraph

Kat script graph.

Methods

KatGraph.argument(argument_node, adapter)

Get argument corresponding to node argument_node.

KatGraph.argument_node_order(node)

Get the order attribute of the edge linking argument node to its parent.

KatGraph.branch_base(path, reference)

The branch base node name for path, relative to reference.

KatGraph.dependent_argument_nodes(node, **kwargs)

KatGraph.dependent_arguments_edge_data(...)

Get mapping of dependent argument nodes to the value of the data attribute on the edge connecting them to parent.

KatGraph.directive_graph(node)

KatGraph.filter_argument_nodes(node, key)

KatGraph.filter_dependent_nodes(node, key)

KatGraph.in_edge_source_nodes_by_edge_type(...)

KatGraph.in_edges_by_edge_type(node, ...)

KatGraph.is_independent(node)

Check if the node has no external dependencies.

KatGraph.is_subpath(path, reference)

Check if path is a subpath of reference.

KatGraph.is_tree()

KatGraph.item_node_name(name, parent_path)

KatGraph.merge(other)

Merge other graph into this graph, rewriting paths in other if there are name collisions.

KatGraph.nodes_by_node_type(node_type, **kwargs)

Get nodes by type, with optional data.

KatGraph.out_edge_target_nodes_by_edge_type(...)

KatGraph.out_edges_by_edge_type(node, ...)

KatGraph.param_target_element_path(target, ...)

The owning element path for target.

KatGraph.path_parent(path)

KatGraph.plot(*args, **kwargs)

KatGraph.sorted_dependent_argument_nodes(...)