in polymake, the graph of a polytope is encoded as a sub-object of type Graph (like the one you can create with "new Graph(...)" in application graph), so the edges are listed with
Similarly, you can get the adjacency matrix via
and the neighbors of a particular node with
Code: Select all
$p->GRAPH->ADJACENCY->adjacent_nodes(3);