logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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

perl v5.36.0                                       2023-12-18                  GO::Model::GraphNodeInstance(3pm)

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;
         }

See Also