Relay graph representation to networkx and vise versa

Hi All,

I am wondering if it is possible to convert the relay expressions of network graph to networks? and vise versa?

The networks is here: https://networkx.github.io/