check.network-methods {NetPreProc} | R Documentation |
Graph checking
Description
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.
Usage
check.network(W, name="Network matrix")
Arguments
W |
an object representing the graph to be checked |
name |
a character vector that will be printed as heading |
Value
It return a list of strings about the characteristics of the graph
Methods
signature(W = "graph")
-
an object of the virtual class graph (hence including objects of class
graphAM
andgraphNEL
from the package graph) signature(W = "matrix")
-
a matrix representing the adjacency matrix of the graph
Examples
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");
[Package NetPreProc version 1.2 Index]