AngouriMath

Try it live

Navigation

← Back to list of members

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).

Summary

The list of all subnodes of the given expression, including its own. Traverses
the tree the following order:
  1. The node itself
  2. 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
3

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6018 pages online