is_valid#

Node.is_valid() bool[source]#

Check if the node is a valid node.

Valid node means it resolves to at least one existing node in the node tree. Meaning not only leaf nodes are valid nodes but also partial nodes and nodes containing wildcards.

Returns:

Flag if the node is a valid node

Return type:

bool