我想使用一个数组来存储图的邻接表。其中每个节点具有连接到其的不同数量的节点。所以我只想拥有以下类型的数组:
Row 0: 1 5 3 Row 1: 0 2 3 Row 2: 1 Row 3: 0 1 5 4 Row 4: 3 5 Row 5: 0 1 3 4
c++ algorithm graph multidimensional-array data-structures
algorithm ×1
c++ ×1
data-structures ×1
graph ×1
multidimensional-array ×1