rustworkx.graph_shell_layout#
- graph_shell_layout(graph, /, nlist=None, rotate=None, scale=1, center=None)#
生成图的壳布局
- Parameters:
graph (PyGraph) – 要生成布局的图
nlist (list) - 表示每个壳层的索引列表的列表
rotate (float) – 用于旋转每个壳层相对于前一壳层起始位置的角度(以弧度为单位)
scale (float) – 一个可选的缩放因子,用于缩放位置
center (tuple) – 一个可选的居中位置参数。这是一个二维元组,包含两个用于表示居中位置的
float浮点数值
- Returns:
图的壳层布局。
- Return type: