Drops every node with no edges. Filtering edges deliberately keeps nodes
(see filter_edges), so this is the explicit way to prune the
isolates a filter left behind.
A cograph_network with the isolated nodes removed (or the
input format when keep_format = TRUE). Node order is otherwise
preserved and edge indices are remapped to the new node numbering.
Arguments
x
Network input: cograph_network, matrix, igraph, network, tna, or
an edge-list data frame.
keep_format
Logical. If TRUE, matrix, igraph, statnet network and tna
inputs are returned in that format. Default FALSE returns a
cograph_network.