#! /usr/bin/env python3 # def five_incidence ( ): #*****************************************************************************80 # ## five_incidence() sets up the incidence matrix associated with a network. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 10 April 2022 # # Author: # # John Burkardt # # Output: # # integer A(5,5): an incidence matrix. # import numpy as np A = np.array ( [ \ [ 0, 1, 0, 0, 0 ], \ [ 0, 0, 0, 0, 1 ], \ [ 1, 0, 0, 0, 0 ], \ [ 1, 0, 0, 0, 0 ], \ [ 1, 0, 0, 0, 0 ] ] ) return A if ( __name__ == '__main__' ): A = five_incidence ( ) print ( A )