Remove petgraph

This commit is contained in:
Joscha 2024-12-30 16:00:09 +01:00
parent 34df6c9f14
commit 778cb6748d
6 changed files with 0 additions and 166 deletions

View file

@ -35,14 +35,6 @@ enum Command {
#[arg(short, long)]
flip: bool,
},
/// Find a path from one article to another.
PathPetgraph {
from: String,
to: String,
/// Flip start and end article.
#[arg(short, long)]
flip: bool,
},
/// Find the longest shortest path starting at an article.
LongestShortestPath { from: String },
/// Analyze articles using "Philosophy Game" rules.
@ -82,13 +74,6 @@ fn main() -> io::Result<()> {
commands::path::path(&args.datafile, &from, &to)
}
}
Command::PathPetgraph { from, to, flip } => {
if flip {
commands::path_petgraph::path(&args.datafile, &to, &from)
} else {
commands::path_petgraph::path(&args.datafile, &from, &to)
}
}
Command::LongestShortestPath { from } => {
commands::longest_shortest_path::run(&args.datafile, &from)
}