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_nodeNode

Node to trace from.

to_nodeNode

Node to trace to.

Returns
Gnetworkx.graphviews.SubDiGraph

A SubGraph view of the subgraph between from_node and to_node.