Description Usage Arguments Value See Also Examples
FindCG is used to find all the connected subgraphs with a certain number of nodes.
1 | FindCG(adjacency.matrix, cg.initial)
|
adjacency.matrix |
p by p adjacency matrix of an undirected graph. It must be symmetric. |
cg.initial |
It could be 1:p or a matrix, whose elements are positive integers from 1 to p. If it is a length p vector, FindCG converts it into a matrix with one column. For a matrix with k columns, FindCG reads its rows as th indices of a collection of connected subgraphs with k nodes. |
cg.new |
If the input is a matrix with k columns and stores the indices of all the size k connected subgraphs, the output is a matrix with k+1 columns storing the indices of all the connected subgraphs with k+1 nodes. |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.