#! /usr/bin/env python3 # def abc_check ( ): #*****************************************************************************80 # ## abc_check() checks the norm of the eigenvalues of the abc digraph. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 10 April 2022 # # Author: # # John Burkardt # from abc_incidence import abc_incidence from transition_from_incidence import transition_from_incidence import numpy as np A = abc_incidence() # # Compute the transition matrix. # T = transition_from_incidence ( A ) # # Request the eigenvalues of T. # val = np.linalg.eigvals ( T ) print ( val ) # # Compute the norms of the eigenvalues. # val_abs = np.abs ( val ) print ( val_abs ) return if ( __name__ == '__main__' ): abc_check ( )