Last data update: 2014.03.03

R: Set edge attributes based on a selection of edges
set_edge_attr_with_selectionR Documentation

Set edge attributes based on a selection of edges

Description

From a graph object of class dgr_graph, set edge attribute properties for edges available in a selection.

Usage

set_edge_attr_with_selection(graph, edge_attr, value)

Arguments

graph

a graph object of class dgr_graph that is created using create_graph.

edge_attr

the name of the attribute to set.

value

the value to be set for the chosen attribute for the chosen edges.

Value

a graph object of class dgr_graph.

Results