Learning Resource Allocation Policy: Vertex-GNN or Edge-GNN?