LinePropertiesMatrix: Create the line Properties matrix

Description Usage Arguments Details Value Examples

View source: R/LinePropertiesMatrix.R

Description

Creates the line properties matrix

Usage

1
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

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.

Value

A matrix, with names rows and columns

Examples

1
2
3
4
#This example doesn't show in the documentation I don't know why
g2 <-make_ego_graph(g, 2, "AXMI")[[1]]
plot(g2)
LinePropertiesMatrix(g2)

JonnoB/PowerGridNetworking documentation built on Aug. 7, 2021, 3:04 a.m.