nwrename

Rename a network

Syntax

Rename single network
nwrename old_netname new_netname
Rename multiple networks
nwrename (old1 old2 ...) (new1 new2 ...)

Description

nwrename changes the name of an existing network old_netname to new_netname; the content of the network remains unchanged.

Examples

. nwwebuse florentine, nwclear

(2 networks)
--------------------
        flobusiness
        flomarriage

. nwds
flobusiness    flomarriage

. nwrename flobusiness business
. nwrename flomarriage marriage

. nwds
business    marriage

Supported network types

Binary: yes. Directed: yes. Weighted: yes. Signed: yes - renames the network object only; its content, including directed/valued/two-mode status, is completely unchanged.

See also

  • nwname, rename

  • last certified : 24 Aug 2026


nwcommands version 3.17.6, 9 November 2026 (check your installed version)


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.