Subset an edge list
retain.groups(edges, groups) retain.nodes(edges, nodes)
edges | an edge list |
---|---|
groups | the groups to retain in the subset |
nodes | the nodes to retain in the subset |
retain.groups
returns an edge list containing only
edges from the specified groups.
retain.nodes
returns an edge list containing only
edges incident on the specified nodes.
These functions extract a subset of an edge list containing only edges in a specified group, or incident with a specified set of nodes.
#> A *-> B #> B *-> C