node_type

reactions.node_type(n)

Get the node type as a string (decay, reaction or element)

Parameters

n (node) – Node to check

Returns

Node type as a string

Return type

str

Raises

TypeError – If the input object is not a node object.