docs and abstract methods for traits
class graph