implemented basic adjancency graph intializer.