create graph