bw_graph_tools.graph_traversal.assumed_diagonal
Classes
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_utilslibrary. Normally built automatically by anLCAclass. Should be thetechnosphere_matrixor equivalent.- Returns:
The matrix row and column indices of the production exchanges.
- Return type:
(numpy.array, numpy.array)