set.vertex.attribute: Set vertex attributes

View source: R/attributes.R

set.vertex.attributeR Documentation

Set vertex attributes

Description

[Deprecated]

set.vertex.attribute() was renamed to set_vertex_attr() to create a more consistent API.

Usage

set.vertex.attribute(graph, name, index = V(graph), value)

Arguments

graph

The graph.

name

The name of the attribute to set.

index

An optional vertex sequence to set the attributes of a subset of vertices.

value

The new value of the attribute for all (or index) vertices. If NULL, the input is returned unchanged.


igraph/rigraph documentation built on May 19, 2024, 6:19 a.m.