def is_dynamic_graph(A):
    """tests whether the graph is a dynamic graph

    Parameters
    ----------
    A : ndarray, shape(n, n) **or** (n_tps, n, n) **or** (n_tps, n_edges)
        Adjacency matrix of the graph.

    Returns
    -------
    v : boolean
        The graph is a dynamic graph.

    Examples
    --------
    >>> DG = get_dynamic_graph(weighted=True, reduce=False)
    >>> is_dynamic_graph(DG)
    True
    >>> A = get_graph()
    >>> is_dynamic_graph(A)
    False
    """

    if len(A.shape) == 3:
        DG = True
    elif A.shape[0] == A.shape[1]:
        DG = False
    else:
        DG = True
    return DG