The functions dropDeadEdges
and dropDeadNodes
are used to
remove 'dead edges' and 'dead nodes'.
Arguments
- x
a valid gGraph.
- thres
a numeric value indicating the threshold cost for an edge to be
removed. All costs strictly greater than thres
will be removed.
Details
Dead edges are edges associated to a prohibitive cost, that is, edges that
no longer imply connectivity between two nodes.
Dead nodes are nodes that are not connected to any other node, thus not
having any role in the connectivity of a graph.
Examples
if (FALSE) {
plot(worldgraph.10k, reset = TRUE)
x <- dropDeadNodes(worldgraph.10k)
plot(x)
}