adding graph functionality properly
merge