跳到内容

graph_from_atlas() 从 Roland C. Read 和 Robin J. Wilson 的著作“图谱”中创建图表。该图谱包含所有具有最多七个顶点的无向图,编号从 0 到 1252。图表按以下顺序排列

  1. 节点数量递增;

  2. 对于固定数量的节点,边的数量递增;

  3. 对于固定数量的节点和边,度序列递增,例如 111223 < 112222;

  4. 对于固定度序列,自同构的数量递增。

用法

graph_from_atlas(n)

atlas(...)

参数

n

要创建的图表的 ID。

...

传递给 graph_from_atlas()

一个 igraph 图。

示例

## Some randomly picked graphs from the atlas
graph_from_atlas(sample(0:1252, 1))
#> IGRAPH 177a9ef U--- 7 6 -- Graph from the Atlas #282
#> + attr: name (g/c), n (g/n)
#> + edges from 177a9ef:
#> [1] 1--5 1--4 2--3 3--6 6--7 3--7
graph_from_atlas(sample(0:1252, 1))
#> IGRAPH 116180d U--- 7 13 -- Graph from the Atlas #1073
#> + attr: name (g/c), n (g/n)
#> + edges from 116180d:
#>  [1] 1--2 1--7 2--5 2--6 3--4 3--5 3--6 3--7 4--5 4--6 4--7 5--7 6--7