Fixed some errors on function 'is_petri_net'.
Deleted extra print in 'test_examples'