

Induced subgraph
Source: R/transform.R
Description
Returns the graph on nodes with every edge of cg between them. Errors if a node is not in cg.
Usage
subgraph(cg, nodes)Arguments
cg
|
A graph created with cgraph(), of any class.
|
nodes
|
Character vector of node names to keep. |
Value
A cgraph.