adding graph representation