pyecsca.ec.formula.graph module¶
Provides tools for working with formulas as graphs.
- class Node[source]¶
Bases:
ABC
- abstract property label: str¶
- abstract property result: str¶
- property is_sub: bool¶
- property is_mul: bool¶
- property is_add: bool¶
- property is_id: bool¶
- property is_sqr: bool¶
- property is_pow: bool¶
- property is_inv: bool¶
- property is_div: bool¶
- property is_neg: bool¶
- class ConstantNode(i)[source]¶
Bases:
Node
- color = '#b41f44'¶
- property label: str¶
- property result: str¶
- property is_add: bool¶
- property is_div: bool¶
- property is_id: bool¶
- property is_inv: bool¶
- property is_mul: bool¶
- property is_neg: bool¶
- property is_pow: bool¶
- property is_sqr: bool¶
- property is_sub: bool¶
- reconnect_outgoing_nodes(destination)¶
- class InputNode(input)[source]¶
Bases:
Node
- color = '#b41f44'¶
- property label: str¶
- property result: str¶
- property is_add: bool¶
- property is_div: bool¶
- property is_id: bool¶
- property is_inv: bool¶
- property is_mul: bool¶
- property is_neg: bool¶
- property is_pow: bool¶
- property is_sqr: bool¶
- property is_sub: bool¶
- reconnect_outgoing_nodes(destination)¶