getSubGraph: Deriving subgraph

View source: R/graphhelpfns.R

getSubGraphR Documentation

Deriving subgraph

Description

This function derives an adjacency matrix of a subgraph based on the adjacency matrix of a full graph and a list of nodes

Usage

getSubGraph(adj, nodes)

Arguments

adj

square adjacency matrix with elements in {0,1}, representing a graph

nodes

vector of node names of the subgraph; should be a subset of column names of 'adj'

Value

adjacency matrix of a subgraph which includes all 'nodes'

Examples

getSubGraph(Asiamat,c("E","B","D","X"))

BiDAG documentation built on May 31, 2023, 6:46 p.m.

Related to getSubGraph in BiDAG...