Getting edges of a polytope
Posted: 13 Nov 2012, 23:47
How do I have Polymake tell me the edges of a polytope? For example, print $p->VERTICES. "\n"; tells me the vertices of the polytope p. But print $p->EDGES. "\n"; doesn't do anything.
Code: Select all
$p->GRAPH->EDGES;
Code: Select all
$p->GRAPH->ADJACENCY;
Code: Select all
$p->GRAPH->ADJACENCY->adjacent_nodes(3);