|
D.16.1.37 vertexAdjacencyGraph
Syntax:
Polymake::vertexAdjacencyGraph( polytope p )
Type:
- list
Purpose:
- the first entry is a bigintmat containing the vertices,
the first row is vertex 0, the second row is vertex one, etc.;
the second entry is a list of intvecs,
the i-th intvec lists all vertices which are adjacent to the i-1th vertex
Example:
| // an octogon
intmat M[8][3]=
1,1,2,
1,2,1,
1,2,-1,
1,1,-2,
1,-1,-2,
1,-2,-1,
1,-2,1,
1,-1,2;
polytope p=polytopeViaPoints(M);
list L=vertexAdjacencyGraph(p);
|
|