updated program.cs and Graph library

updated program.cs and Graph library