View source: R/lazarus_count.R
lazarus_count | R Documentation |
Calculates the Lazarus count of a matrx/graph.
lazarus_count(g, perm = NULL, mode = "cols")
g |
either an igraph object or a (0,1)-matrix |
perm |
permutation or NULL |
mode |
one of "mcl" (clique vertex matrix), "cols" (Lazarus count of columns) "rows" (Lazarus count of rows) or "sym" (Lazarus count of both columns and rows). |
The Lazarus count of a matrix is the number of "holes" in each column. A hole is a number of zero entries surrounded by ones. For an interval graph, this count is zero for the [clique_vertex_mat]. If 'perm' is NULL, a row permutation based on the Fiedler vector of the Laplacian is calculated.
Lazarus count of g
David Schoch
set.seed(10) #the lazarus count of an interval graph is zero g <- graph_interval(n = 10,r = 1) lazarus_count(g, mode = "mcl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.