Description Usage Arguments Value See Also Examples
These functions return actor and event node lists.
x = an affiliation network value = V1(x) or V2(x) with additional attributes: "name" = name of attribute being assigned "value" = values being assigned to attribute
1 2 3 4 5 6 7 8 9 10 11 | V1(graph)
V2(graph)
set_actor_attr(graph, name, index = V1(graph), value)
set_event_attr(graph, name, index = V2(graph), value)
V1(x) <- value
V2(x) <- value
|
graph |
An affiliation network. |
name |
The name of the attribute to set. |
index |
An optional node sequence to set the attributes of a subset of actor or event nodes. |
value |
The new value of the attribute for all (or |
x |
An affiliation network. |
graph
, with the actor or event attribute added or set.
Original igraph functions: V
,
set_vertex_attr
Other modal queries and manipulations: dualize
,
mode_addition
, mode_counts
,
schedule
1 2 3 4 5 6 | data(women_clique)
print(V1(women_clique))
print(V2(women_clique))
V1(women_clique)$label <- LETTERS[1:5]
V2(women_clique)$label <- 1:5
plot(prettify_an(women_clique))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.