graph node class
it was stupid