This might help?
https://developer.rhino3d.com/api/RhinoCommon/html/Methods_T_Rhino_Geometry_BrepFace.htm
By way of example, here is a ghpython sample, (Rhino V6), the replicates the Native Brep Topology Component.
import Rhino
from ghpythonlib import treehelpers as th
FF1 = []
FE1 = []
EF1 = []
for f in x.Faces:
FF1.append(f.AdjacentFaces())
FE1.append(f.AdjacentEdges())
for e1 in x.Edges:
EF1.append(e1.AdjacentFaces())
FF = th.list_to_tree(FF1, True)
FE = th.list_to_tree(FE1, True)
EF = th.list_to_tree(EF1, True)
The tree helpers are specific to GH, to deal with the whole nested array/list/data tree issues. They are awesome.
BrepTopologyKnockOff_GHPy.gh (8.0 KB)