first#

DbNodes.first(inod=0)#

Return the number of the first node.

This starts at inod, defaults to the first node in the model.

Parameters:
inodint, optional

The first node number to consider as the “first node”.

Returns:
int

The first node number within either selected or all nodes.

Examples

Return the first selected node.

>>> nodes.first()
1

Return the first node after node 10.

>>> nodes.first(inod=10)
11