def TotalVertices(A):
    """
    TotalVertices calculates the total number of vertices in a network.
    Input:
        A = adjacency matrix
    Output:
        n = total number of vertices
    """
    n = int(len(A[0,:]))
    return n