fix GraphBatchGenerator bug when only one structure is provided
fix GraphBatchGenerator bug when only one structure is provided

materialsvirtuallab/megnet,materialsvirtuallab/megnet,materialsvirtuallab/megnet,materialsvirtuallab/megnet,materialsvirtuallab/megnet