[.mixedgraph | R Documentation |
mixedgraph
objectsTake induced vertex subgraph or bipartite subgraph of mixedgraph
## S3 method for class 'mixedgraph'
graph[v, w, ..., drop = FALSE, etype, order = FALSE]
subGraph(graph, v, w, drop = FALSE, etype, order = FALSE)
restore_nodes(graph, v)
graph |
a |
v |
vertices to keep (or restore) |
w |
other set of vertices for bipartite subgraph |
... |
other arguments |
drop |
force removed vertices to be dropped from representation in adjacency matrices and lists? |
etype |
edge types to keep (defaults to all) |
order |
logical: force graph to follow new order implied by |
If order
is TRUE
, then edgeMatrix
and eList
formats are converted to edgeList
s (adjMatrix
format is preserved).
Note that order
will have no effect if w
is specified.
restore_nodes
will add back in nodes whose names are still present, but
which were removed by a subGraph
command.
[
: bracket notation for subgraphs
restore_nodes()
: Add back in vertices removed by taking a subgraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.