add_operation#
- Matrix.add_operation(operation_type, source_names=None, new_net_name=None, new_source_name=None, new_sink_name=None)[source]#
Add a new operation to existing matrix.
- Parameters:
- operation_type
str
Operation to perform
- source_names
str
,list
List or str containing the content of the matrix reduction (eg. source name).
- new_net_name
str
,optional
Name of the new net. The default is
None
.- new_source_name
str
,optional
Name of the new source. The default is
None
.- new_sink_name
str
,optional
Name of the new sink. The default is
None
.
- operation_type
- Returns:
- bool
True if succeeded.