permute.vertices: Permute the vertices of a graph

View source: R/topology.R

permute.verticesR Documentation

Permute the vertices of a graph

Description

[Deprecated]

permute.vertices() was renamed to permute() to create a more consistent API.

Usage

permute.vertices(graph, permutation)

Arguments

graph

The input graph, it can directed or undirected.

permutation

A numeric vector giving the permutation to apply. The first element is the new id of vertex 1, etc. Every number between one and vcount(graph) must appear exactly once.


igraph documentation built on Oct. 20, 2024, 1:06 a.m.