Calculate the weight of edges from vertices.
Examples
design_matrix <- matrix(c(1, 2, 2, 1, 3, 2, 1, 3, 3), nrow = 3, ncol = 3)
vertices <- get_vertices(design_matrix)
edges <- get_edges(vertices)
Calculate the weight of edges from vertices.
design_matrix <- matrix(c(1, 2, 2, 1, 3, 2, 1, 3, 3), nrow = 3, ncol = 3)
vertices <- get_vertices(design_matrix)
edges <- get_edges(vertices)