include A.h
create a simple topology in cost[][] array