rl_equation_solver.utilities.utilities.to_graph

to_graph(expr, feature_dict)[source]

Make a graph plot of the internal representation of SymPy expression.

Parameters:
  • expr (str) – State string representation

  • feature_dict (dict) – Dictionary mapping feature names to values

Returns:

networkx.Graph