GLib.Node.n_nodes

### Method

# GLib Noden_nodes

#### Declaration [src]

    guint
    g_node_n_nodes (
      GNode* root,
      GTraverseFlags flags
    )

#### Description [src]

Gets the number of nodes in a tree.

#### Parameters

`flags`

  Type: `GTraverseFlags`

  Which types of children are to be counted, one of `G_TRAVERSE_ALL`, `G_TRAVERSE_LEAVES` and `G_TRAVERSE_NON_LEAVES`.

#### Return value

Type: `guint`

The number of nodes in the tree.