class NodeMap#

Bases: object

A class representing a mapping of node indices to node indices

This class is equivalent to having a dict of the form:

{1: 0, 3: 1}

Unlike a dict though this class is unordered and multiple NodeMap objects with the same contents might yield a different order when iterated over. If a consistent order is required you should sort the object.