updated edges/nodes query for gephi