def METHOD_NAME(cls, name):
    """Get a named convention as a GraphConvention object."""
    try:
        return cls.CONVENTION[name]
    except KeyError as exc:
        raise ValueError(f"convention not understood ({name})") from exc