finesse.simulations.graph.tools.make_optical_operator_graph¶
- finesse.simulations.graph.tools.make_optical_operator_graph(model: Model) OperatorGraph [source]¶
Create an optical operator graph based on the given model.
- Parameters
- model
finesse.model.Model
The model object containing the optical network.
- model
- Returns
- tuple
A tuple containing the following elements: - node_index : dict
A dictionary mapping nodes to their corresponding indices.
- index_namedict
A dictionary mapping indices to their corresponding nodes.
- elementsset
A set of unique elements in the optical network.
- graph
finesse.graph.OperatorGraph
An operator graph representing the optical network.
- graph