Skip to content

Commit

Permalink
Add doctests for all public functions, fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mattxwang committed Jul 17, 2023
1 parent ee279e7 commit bc4ba85
Show file tree
Hide file tree
Showing 2 changed files with 323 additions and 31 deletions.
2 changes: 1 addition & 1 deletion examples/rsbn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Args {
fn main() {
let args = Args::parse();
let str = fs::read_to_string(args.file).unwrap();
let network = bayesian_network::BayesianNetwork::from_string(&str);
let network = bayesian_network::BayesianNetwork::from_json(&str);
println!("bn: {:?}", network);
// println!("topo sort: {:?}", network.topological_sort());
// let parent_assgn = HashMap::from([ (String::from("Erk"), String::from("HIGH")),
Expand Down
Loading

0 comments on commit bc4ba85

Please sign in to comment.