Description Usage Arguments Details Value Author(s) See Also Examples
A function to remove a node from a graph. All edges to and from the node are also removed.
1 | removeNode(node, object)
|
node |
The label of the node to be removed. |
object |
The graph to remove the node from. |
The specified node is removed from the graph as are all edges to and
from that node. A new instance of the same class as object
with
the specified node(s) is returned.
Note, node can be a vector of labels, in which case all nodes are removed.
This is similar to subGraph
.
A new instance of a graph of the same class as object
but with
all specified nodes removed.
R. Gentleman
removeEdge
, addEdge
,
addNode
,subGraph
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.