class Topology:
defvGetAdjacentVertices (self, ):
adj = self·adjacent
return adj
defeGetIncidentFaces (self, , ):
= set (self·adjacent )
= set (self·adjacent )
·intersection
faces =
for in :
  faces·append (( , , ))
return faces
Algorithm 1: Implementation of methods vGetAdjacentVertices and eGetIncidentFaces.