connectedSubGraph | R Documentation |
This function derives an adjacency matrix of a subgraph whose nodes are connected to at least one other node in a graph
connectedSubGraph(adj)
adj |
square adjacency matrix with elements in |
adjacency matrix of a subgraph of graph represented by 'adj' whose nodes have at least one connection
dim(gsimmat) #full graph contains 100 nodes
gconn<-connectedSubGraph(gsimmat) #removing disconnected nodes
dim(gconn) #connected subgraph contains 93 nodes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.