default nodes/edges to empty arrays