Skip to contents

Place vertices on a sphere, approximately uniformly, in the order of their vertex ids.

Usage

layout_on_sphere(graph)

on_sphere(...)

Arguments

graph

The input graph.

...

Passed to layout_on_sphere().

Value

A numeric matrix with three columns, and one row for each vertex.

Details

layout_on_sphere() places the vertices (approximately) uniformly on the surface of a sphere, this is thus a 3d layout. It is not clear however what “uniformly on a sphere” means.

If you want to order the vertices differently, then permute them using the permute() function.

Author

Gabor Csardi csardi.gabor@gmail.com