grpah theory concepts implemented