def METHOD_NAME(self, full_name, layer, name, node_type, parms):
    """Register an operation node in the graph; any node can be added only once.
    Nodes are stored in the order they are registered."""
    if full_name in self._nodes_by_name:
        raise AssertionError('%s is an existing node' % full_name)
    self._nodes_by_name[full_name] = {
        'layer': layer,
        'name': name,
        'type': node_type,
        'parms': parms,
        'uses': 0,
        'macs': 0,
    }