edisgo.tools.networkx_helper
Functions
|
Translate DataFrames to networkx Graph Object. |
Module Contents
- edisgo.tools.networkx_helper.translate_df_to_graph(buses_df, lines_df, transformers_df=None)
Translate DataFrames to networkx Graph Object.
- Parameters:
buses_df (pandas.DataFrame) – Dataframe with all buses to use as Graph nodes. For more information about the Dataframe see
buses_df.lines_df (pandas.DataFrame) – Dataframe with all lines to use as Graph branches. For more information about the Dataframe see
lines_dftransformers_df (pandas.DataFrame, optional) – Dataframe with all transformers to use as additional Graph edges (with a length of zero). For more information about the Dataframe see
transformers_df
- Returns:
Graph representation of the grid as networkx Ordered Graph, where lines and transformers are represented by edges in the graph and buses are represented by nodes. Transformer edges have a length of zero.
- Return type: