code: def _create_node_matrix_from_full_matrix(specs):
      
      old_matrix = specs['EDGE_WEIGHT_SECTION']
      nodes = specs['DIMENSION']
  
      specs['MATRIX'] = {}
  
      for i in range(nodes):
          specs['MATRIX'][i + 1] = {}
  
          for j in range(nodes):
              if i > j:
                  continue
  
              specs['MATRIX'][i + 1][j + 1] = int(old_matrix[i][j])
docs: Transform parsed data from EDGE_WEIGHT_SECTION into an upper triangular matrix
  
      'MATRIX' key added to `specs`