athena.utils.tools.graph module

Created on Wed Nov 25 17:43:48 2020

@author: art

Summary

Functions:

df2node_attr

Convert dataframe to dict keyed by index which can be used to set node attributes with networkx

node_attrs2df

Convert networkx graph node attributes to a dataframe index by node

Reference

df2node_attr(df)[source]

Convert dataframe to dict keyed by index which can be used to set node attributes with networkx

node_attrs2df(g, attrs=None)[source]

Convert networkx graph node attributes to a dataframe index by node