check.network-methods | R Documentation |
Method to check the characteristics of a graph. Check if its adjacency matrix is symmetric, if it has NA, NaN o Inf values, and some minimals statistics about nodes and edges.
check.network(W, name="Network matrix")
W |
an object representing the graph to be checked |
name |
a character vector that will be printed as heading |
It return a list of strings about the characteristics of the graph
signature(W = "graph")
an object of the virtual class graph (hence including objects of class graphAM
and graphNEL
from the package graph)
signature(W = "matrix")
a matrix representing the adjacency matrix of the graph
library(bionetdata); data(DD.chem.data); check.network(DD.chem.data); W <- Prob.norm(DD.chem.data); check.network(W, "prob. transition matrix"); WL <- Laplacian.norm(DD.chem.data); check.network(WL, "Laplacian norm. matrix"); library(graph) g1 = randomEGraph(LETTERS[1:15], edges = 40); check.network(g1, "random graph");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.