Added nn-to-nodes to create nodes from an nnstru.

Also added nn-to-graph, and placeholder function nn-to-edges,
which needs to be written.