|
D.16.1.38 vertexEdgeGraph
Syntax:
Polymake::vertexEdgeGraph( 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 specifying the edges of the polytope.
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=vertexEdgeGraph(p);
|
|