Finds the Slack node in each component of the power grid. A graph is put in and a data frame giving the slack reference for each component is returned. The Slack bus is the largest generator in that component

SlackRefFunc(g, name = "name", Generation = "Generation")

Arguments

g

The igraph object representing the power grid

name

The vertex attribute containing node names

Generation

The vertex attribute that contains the generation data.