pystencils.AssignmentCollection.topological_sort

pystencils.AssignmentCollection.topological_sort#

AssignmentCollection.topological_sort(sort_subexpressions=True, sort_main_assignments=True)#

Sorts subexpressions and/or main_equations topologically to make sure symbol usage comes after definition.

Return type:

None

Parameters:
  • sort_subexpressions (bool)

  • sort_main_assignments (bool)