parameters: (self, graph: Graph, replacement_desc: CustomReplacementDescriptor, matched_nodes: list,
                   inputs_order: list, outputs_order: list, prefix: str)
docstring: Creates instance of a SubgraphMatch class from the provided configuration.
          :param graph: networkx graph.
          :param replacement_desc: CustomReplacementDescriptor object describing sub-graph.
          :param matched_nodes: list of matched nodes.
          :param inputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param outputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param prefix: optional prefix of the node names. Is not used in the sub-graph match by points.
docstring_summary: Creates instance of a SubgraphMatch class from the provided configuration.
          :param graph: networkx graph.
          :param replacement_desc: CustomReplacementDescriptor object describing sub-graph.
          :param matched_nodes: list of matched nodes.
          :param inputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param outputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param prefix: optional prefix of the node names. Is not used in the sub-graph match by points.
docstring_tokens: Creates instance of a SubgraphMatch class from the provided configuration . : param graph : networkx graph . : param replacement_desc : CustomReplacementDescriptor object describing sub - graph . : param matched_nodes : list of matched nodes . : param inputs_order : nodes description in the format described in the FrontReplacementFromConfigFileSubGraph . : param outputs_order : nodes description in the format described in the FrontReplacementFromConfigFileSubGraph . : param prefix : optional prefix of the node names . Is not used in the sub - graph match by points .
function: def __init__(self, graph: Graph, replacement_desc: CustomReplacementDescriptor, matched_nodes: list,
                   inputs_order: list, outputs_order: list, prefix: str):
          """
          Creates instance of a SubgraphMatch class from the provided configuration.
          :param graph: networkx graph.
          :param replacement_desc: CustomReplacementDescriptor object describing sub-graph.
          :param matched_nodes: list of matched nodes.
          :param inputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param outputs_order: nodes description in the format described in the FrontReplacementFromConfigFileSubGraph.
          :param prefix: optional prefix of the node names. Is not used in the sub-graph match by points.
          """
          self._input_nodes_map = dict()
          self._output_nodes_map = dict()
          self._matched_nodes_names = matched_nodes
          self.graph = graph
          self.custom_replacement_desc = replacement_desc
          self.scope = prefix
  
          for sub_graph_input_port, input_desc in enumerate(inputs_order):
              for node_pattern, node_in_port in input_desc:
                  node = self.node_by_pattern(node_pattern)
                  if node is not None:
                      self._add_input_node(node.id, node_in_port, sub_graph_input_port)
  
          for sub_graph_output_port, (node_pattern, out_port) in enumerate(outputs_order):
              node = self.node_by_pattern(node_pattern)
              if node is not None:
                  self._add_output_node(node.id, out_port, sub_graph_output_port)
function_tokens: def __init__ ( self , graph : Graph , replacement_desc : CustomReplacementDescriptor , matched_nodes : list , inputs_order : list , outputs_order : list , prefix : str ) : self . _input_nodes_map = dict ( ) self . _output_nodes_map = dict ( ) self . _matched_nodes_names = matched_nodes self . graph = graph self . custom_replacement_desc = replacement_desc self . scope = prefix for sub_graph_input_port , input_desc in enumerate ( inputs_order ) : for node_pattern , node_in_port in input_desc : node = self . node_by_pattern ( node_pattern ) if node is not None : self . _add_input_node ( node . id , node_in_port , sub_graph_input_port ) for sub_graph_output_port , ( node_pattern , out_port ) in enumerate ( outputs_order ) : node = self . node_by_pattern ( node_pattern ) if node is not None : self . _add_output_node ( node . id , out_port , sub_graph_output_port )