Creates the line properties matrix
LinePropertiesMatrix(g, Edgename = "Link", Weight = "Y")
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 |
A matrix, with names rows and columns
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.
#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"#> Error in plot(g2): object 'g2' not foundLinePropertiesMatrix(g2)#> Error in "igraph" %in% class(graph): object 'g2' not found