graph inner classes fixes
adding edges fix