fn parse_file_to_model(file_path: &str) -> Result<FactorGraphModel, String> {
        let file_string = match fs::read_to_string(file_path) {
            Ok(s) => s,
            Err(_e) => return Err(format!("File could not be parsed: {}", file_path)),
        };
        Self::parse_string_to_model(&file_string)
    }
/// Tries to parse a file at the given path to the factor graph model used in the context with files.
Tries to parse a file at the given path to the factor graph model used in the context with files.
Tries to parse a file at the given path to the factor graph model used in the context with files .
fn parse_file_to_model(file_path: &str) -> Result<FactorGraphModel, String> {
        let file_string = match fs::read_to_string(file_path) {
            Ok(s) => s,
            Err(_e) => return Err(format!("File could not be parsed: {}", file_path)),
        };
        Self::parse_string_to_model(&file_string)
    }
fn parse_file_to_model ( file_path : & str ) -> Result < FactorGraphModel , String > { let file_string = match fs :: read_to_string ( file_path ) { Ok ( s ) => s , Err ( _e ) => return Err ( format ! ( " " file_path ) ) , } ; Self :: parse_string_to_model ( & file_string ) }
Tries to parse a file at the given path to the factor graph model used in the context with files.
Tries to parse a file at the given path to the factor graph model used in the context with files .
file_path
&str