Using ordered dicts for Node.ports and internal properties of graph.