weighted.adjacency.matrix {HEMDAG} | R Documentation |
Weighted adjacency matrix
Description
Build a symmetric weighted adjacency matrix (wadj matrix) of a graph.
Usage
weighted.adjacency.matrix(file = "edges.txt")
Arguments
file |
name of the plain text file to be read ( |
Value
A named symmetric weighted adjacency matrix of the graph.
Examples
edges <- system.file("extdata/edges.txt.gz", package="HEMDAG");
W <- weighted.adjacency.matrix(file=edges);
[Package HEMDAG version 2.7.4 Index]