initial code for abyss graph