fix bug parent of graph