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: gGraphA graph object to persist. ffileA file-like object.