cortex.polyutils.Surface.get_graph

Surface.get_graph()[source]

Get a NetworkX undirected graph representing this surface.

Equivalent to the graph property; provided as a method for callers that need a callable rather than a property access.

Returns:
graphnetworkx.Graph

Undirected graph with an edge for every edge in the surface mesh.