def METHOD_NAME(self):
    """
    Return the dimension of ``self`` as a CW complex.
    EXAMPLES::
        sage: from sage.categories.graphs import Graphs
        sage: C = Graphs().example()
        sage: C.dimension()
        1
    """
    if self.edges():
        return 1
    return 0