Creates the line properties matrix

LinePropertiesMatrix(g, Edgename = "Link", Weight = "Y")

Arguments

g

Igraph object which contains an attribute naming the edges and another that provides the edge weight

Edgename

A character string of the edge attribute that holds edge names. Default is "Link"

Weight

A character string of the edge.attribute for edge weights. Default is "Y

Value

A matrix, with names rows and columns

Details

This function creates a line properties matrix that can be used with the output of the Transmission matrix function. The function takes an igraph object of a power-grid and returns diagonal matrix. Where the diagonal is the edgeweight of each edge.

Examples

#This example doesn't show in the documentation I don't know why g2 <-make_ego_graph(g, 2, "AXMI")[[1]]
#> Error in make_ego_graph(g, 2, "AXMI"): could not find function "make_ego_graph"
plot(g2)
#> Error in plot(g2): object 'g2' not found
LinePropertiesMatrix(g2)
#> Error in "igraph" %in% class(graph): object 'g2' not found