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_typestr

Operation to perform

source_namesstr, list

List or str containing the content of the matrix reduction (eg. source name).

new_net_namestr, optional

Name of the new net. The default is None.

new_source_namestr, optional

Name of the new source. The default is None.

new_sink_namestr, optional

Name of the new sink. The default is None.

Returns:
bool

True if succeeded.