getSubGraph {BiDAG}R 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"))

[Package BiDAG version 2.1.4 Index]