getSubGraph | R Documentation |
This function derives an adjacency matrix of a subgraph based on the adjacency matrix of a full graph and a list of nodes
getSubGraph(adj, nodes)
adj |
square adjacency matrix with elements in |
nodes |
vector of node names of the subgraph; should be a subset of column names of 'adj' |
adjacency matrix of a subgraph which includes all 'nodes'
getSubGraph(Asiamat,c("E","B","D","X"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.