I have the code below to load the data:
from pymnet import * 
import pandas as pd 
nodes_id = ['a',    'b',    'c',    'd',    'e',    'f',    'g',    1,  2,  3,  'aa',   'bb',   'cc']
layers = [1,    1,  1,  1,  1,  1,  1,  2,  2,  2,  3,  3,  3]
nodes = {'nodes': nodes_id, 'layers': layers}
df_nodes = pd.DataFrame(nodes)
to = ['b',  'c',    'd',    'f',    1,  2,  3,  'bb',    'cc',  2,  3,  'a',    'g']
from_edges = ['a',  'a',    'b',    'e',    'a',    'b',    'e',    'aa',   'aa',   'aa', 1, 2, 3]
edges = {'to': to, 'from': from_edges}
df_edges = pd.DataFrame(edges)
I am attempting to use pymnet as a package to create a multi-layered network. (http://www.mkivela.com/pymnet/)
Does anybody know how to create a 3 layered network visualisation using this diagram? The tutorials seem to add nodes one at a time and it is unclear how to use a nodes and edges dataframe for this purpose. The layer groups are provided in the df_nodes.
Thanks
