graphs implemented