AngouriMath

Navigation

← Back to list of members

Nodes

 Property

Remarks

A depth-first enumeration is required by
GetMinimumSubtree(AngouriMath.Entity,AngouriMath.Entity.Variable)

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-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online