'Create a graph node for the given layer.'

def make_node(self, layer):

    kind = NodeKind.map_raw_kind(layer.type)
    if (kind is None):
        raise KaffeError(('Unknown    layer    type    encountered:    %s' % layer.type))
    return Node(layer.name, kind, layer=layer)
