Nodes
Property
Remarks
A depth-first enumeration is required by
GetMinimumSubtree(AngouriMath.Entity,AngouriMath.Entity.Variable). Nothing is cached:
each enumeration walks the tree afresh, at the cost of one object and none per node
(see NodeWalk).
GetMinimumSubtree(AngouriMath.Entity,AngouriMath.Entity.Variable). Nothing is cached:
each enumeration walks the tree afresh, at the cost of one object and none per node
(see NodeWalk).
Summary
The list of all subnodes of the given expression, including its own. Traverses
the tree the following order:
the tree the following order:
- The node itself
- All nodes from all children
Example
Entity expr = "a + b / 2 ^ 3";
for (var node in expr.Nodes)
Console.WriteLine(node);Output:
a + b / 2 ^ 3
a
b / 2 ^ 3
b
2 ^ 3
2
3Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6018 pages online