ml4co_kit.wrapper.graph.mcut

MCut Wrapper.

Classes

MCutWrapper(precision)

class ml4co_kit.wrapper.graph.mcut.MCutWrapper(precision: ~numpy.float32 | ~numpy.float64 = <class 'numpy.float32'>)[source]

Bases: WrapperBase

from_gpickle_result_folder(graph_folder_path: Path = None, result_foler_path: Path = None, ref: bool = False, overwrite: bool = True, show_time: bool = False)[source]

Read task data from folder (to support NetworkX format)

from_txt(file_path: Path, ref: bool = False, overwrite: bool = True, show_time: bool = False)[source]

Read task data from .txt file

to_gpickle_result_folder(graph_folder_path: Path = None, result_foler_path: Path = None, show_time: bool = False, sequential_orderd: bool = True)[source]

Write task data to NetworkX format files

to_txt(file_path: Path, show_time: bool = False, mode: str = 'w')[source]

Write task data to .txt file