---
name: "GO::Model::GraphNodeInstance"
section: "3pm"
platform: "linux"
package: "libgo-perl"
version: "0.15-10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/GO::Model::GraphNodeInstance"
---

# GO::Model::GraphNodeInstance(3pm)

a graph node located in a tree

## NAME

GO::Model::GraphNodeInstance  - a graph node located in a tree

## SYNOPSIS

```
  $it = $graph->create_iterator;
  # returns a GO::Model::GraphIterator object
  while (my $ni = $it->next_node_instance) {
    $depth = $ni->depth;
    $term = $ni->term;
    $reltype = $ni->parent_rel->type;
    printf
      "%s %8s Term = %s (%s)  // depth=%d\n",
          "----" x $depth,
          $reltype,
          $term->name,
          $term->public_acc,
          $depth;
  }
```

## DESCRIPTION

see GO::Model::Graph

### term

```
  Usage   -
  Returns - GO::Model::Term
  Args    -
```

see GO::Model::Term

### depth

```
  Usage   -
  Returns - int
  Args    -
```

### parent\_rel

```
  Usage   -
  Returns - GO::Model::Relationship
  Args    -
```

see GO::Model::Relationship
