bw_graph_tools.graph_traversal.assumed_diagonal

Classes

AssumedDiagonalGraphTraversal

Module Contents

class bw_graph_tools.graph_traversal.assumed_diagonal.AssumedDiagonalGraphTraversal[source]

Bases: bw_graph_tools.graph_traversal.new_node_each_visit.NewNodeEachVisitGraphTraversal

classmethod get_production_exchanges(mapped_matrix: matrix_utils.MappedMatrix)[source]

Assume production exchanges are always on the diagonal instead of examining matrix structure and input data.

Parameters:

mapped_matrix (matrix_utils.MappedMatrix) – A matrix and mapping data (from database ids to matrix indices) from the matrix_utils library. Normally built automatically by an LCA class. Should be the technosphere_matrix or equivalent.

Returns:

The matrix row and column indices of the production exchanges.

Return type:

(numpy.array, numpy.array)