# Command: GetNetwork

NEST HelpDesk | Command Index | NEST Quick Reference

Name:

    GetNetwork - Return a nested list with the IDs of nodes in a multi-dimensional subnet.
      Synpsis: ID n GetNetwork -> [ ]

Description:

      GetNetwork takes the id of a subnet and an integer parameter
      n. GetNetwork then recursively calls GetChildren down to level n.
      The result is a nested list whicht contains the ids of all nodes.
      The first element of each list is the id of the subnet itself.

      Example:
      SLI ] /iaf_psc_alpha Create ;
      SLI ] /iaf_psc_alpha [2 2] LayoutNetwork ;
      SLI ] /iaf_psc_alpha Create ;
      SLI ] 0 3 GetNetwork ==
      [0 1 [2 [3 4 5] [6 7 8]] 9]

Remarks:

      In parallel simulations, this function collects data across all processes
      and can thus take a lot of time and consume huge amounts of memory.

SeeAlso:

- GetGlobalNodes
- GetLocalNodes
- GetGlobalLeaves
- GetLocalLeaves
- GetGlobalChildren
- GetLocalChildren

Source:

    /opt/conda/conda-bld/nest_1531570948828/work/lib/sli/nest-init.sli

NEST HelpDesk | Command Index | NEST Quick Reference

© 2004 The NEST Initiative