Overloads subset operator for gEdge. Allows subsetting of gEdge via index or sedge.id (as a key). Also, allows for data.table style queries on gEdge and corresponding metadata.

# S3 method for gEdge
[(obj, i = NULL, from = NULL, to = NULL, with = TRUE, ...)

Arguments

obj

This is the gEdge object to be subset

i

integer, logical, or expression in gEdge metadata used to subset gEdge

Value

A new gEdges that contains only the given id's

Author

Joe DeRose