misc_extract_components {CINNA} | R Documentation |
This function extracts all components of the input with various formats and convert them as "igraph" objects.
misc_extract_components( x, directed = TRUE, mode = "directed", weighted = NULL, unibipartite = FALSE, diag = TRUE )
x |
The input could be an edgelist and an adjacency matrix |
directed |
Whether to create a directed graph.(default=TRUE) |
mode |
Character scalar, explain how should demonstrate the supplied matrix. Possible values are: directed, undirected, upper, lower, max, min, plus.(default="directed") |
weighted |
An argument for specifying whether the graph should be weighted or not. If it is NULL then an unweighted graph is created.(default=NULL) |
unibipartite |
A boolean parameter describing whether the input edge list is corresponding to a bipartite graph. TRUE value specifies the biprtite graph and vice versa.(default=FALSE) |
diag |
Logical scalar, whether to consider the diagonal of the matrix or not. If it was FALSE then the diagonal spotted as zeros.(default=TRUE) |
This function assert components of the input object which can be an edgelist, an adjacency matrix and a graphNEL object. The result would be a list including components as seperated graphs.
a list including the components of the input graph as igraph objects
Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari
induced.subgraph
,components
,
graph_from_adjacency_matrix