These functions return the number of actors (nodes with type attribute FALSE) or events (TRUE) in an affiliation network.

actor_count(graph)

event_count(graph)

actor.count(graph)

event.count(graph)

Arguments

graph

An affiliation network.

See also

Original igraph functions: vcount, ecount

Other modal queries and manipulations: dualize, mode_addition, modes, schedule

Examples

data(chicago1960s) actor_count(chicago1960s)
#> [1] 20
event_count(chicago1960s)
#> [1] 24