finesse.model.Model.sub_model

Model.sub_model(from_node, to_node)[source]

Obtains a subgraph of the complete configuration graph between the two specified nodes.

Parameters

from_node : Node

Node to trace from.

to_node : Node

Node to trace to.

Returns

G : networkx.graphviews.SubDiGraph

A SubGraph view of the subgraph between from_node and to_node.