@classmethod
def _as_convention(cls, name):
    """Get a named convention as a GraphConvention object."""
    try:
        return cls.CONVENTION[name]
    except KeyError:
        raise ValueError('convention not understood ({0})'.format(name))
