nocad.plotting.as_pos_dict# nocad.plotting.as_pos_dict(pos, G=None)[source]# NetworkX-style pos dictionary from an (N, 2) array. Keys are the nodes of G if it is a networkx graph, the labels of G if it is a DataFrame, otherwise the integer indices. Examples >>> as_pos_dict([[0, 0], [1, 0]]) {0: (0.0, 0.0), 1: (1.0, 0.0)}