medpy.graphcut.write.graph_to_dimacs#

medpy.graphcut.write.graph_to_dimacs(g, f)[source]#

Persists the supplied graph in valid dimacs format into the file.

Parameters:
gGraph

A graph object to persist.

ffile

A file-like object.