graphit/__init__.py
def check_graphbase_instance(*args):
    """
    Validate if all objects in `args` are instances of the GraphBase class

    :param args: Arguments to check

    :return:     True if validation successful
    :rtype:      :py:bool
    :raises:     AttributeError if validation fails
    """

    # Validate arguments, should be Graph instance
    if not all([isinstance(graph, Graph) for graph in args]):
        raise AttributeError('All arguments need be of type Graph')

    return True

    Validate if all objects in `args` are instances of the GraphBase class

    :param args: Arguments to check

    :return:     True if validation successful
    :rtype:      :py:bool
    :raises:     AttributeError if validation fails
    
Validate if all objects in `args` are instances of the GraphBase class
Validate if all objects in ` args ` are instances of the GraphBase class
def check_graphbase_instance(*args):
    if not all([isinstance(graph, Graph) for graph in args]):
        raise AttributeError('All arguments need be of type Graph')
    return True
def check_graphbase_instance ( * args ) : if not all ( [ isinstance ( graph , Graph ) for graph in args ] ) : raise AttributeError ( 'All arguments need be of type Graph' ) return True
Validate if all objects in `args` are instances of the GraphBase class
Validate if all objects in ` args ` are instances of the GraphBase class
"""
    Validate if all objects in `args` are instances of the GraphBase class

    :param args: Arguments to check

    :return:     True if validation successful
    :rtype:      :py:bool
    :raises:     AttributeError if validation fails
    """ # Validate arguments, should be Graph instance
True if validation successful
True if validation successful
:py:bool
AttributeError if validation fails
AttributeError if validation fails
args
Arguments to check
Arguments to check