subGraph: Subgraphs for 'mixedgraph' objects

[.mixedgraphR Documentation

Subgraphs for mixedgraph objects

Description

Take induced vertex subgraph or bipartite subgraph of mixedgraph

Usage

## 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)

Arguments

graph

a mixedgraph object

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 v?

Details

If order is TRUE, then edgeMatrix and eList formats are converted to edgeLists (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.

Functions

  • [: bracket notation for subgraphs

  • restore_nodes(): Add back in vertices removed by taking a subgraph


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.