valid.eids:
Get the ids of all the edges that are valid in a network
Description
Returns a vector of valid edge ids (corresponding to non-NULL edges) for a network that may have some deleted edges.
Usage
valid.eids(x)
Arguments
x
a network object, possibly with some deleted edges.
Value
a vector of integer ids corresponding to the non-null edges in x
Details
The edge ids used in the network package are positional indices on the internal "mel" list. When edges are removed using delete.edgesNULL elements are left on the list. The function valid.eids returns the ids of all the valid (non-null) edge ids for its network argument.