extending graph