Skip to content

Commit

Permalink
clean some mess
Browse files Browse the repository at this point in the history
  • Loading branch information
pawarherschel committed Jan 26, 2024
1 parent df8898b commit bff6ab6
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,6 @@ use vrcx_insights::zaphkiel::world_instance::WorldInstance;

#[allow(clippy::too_many_lines)]
fn main() {
// let mut map = HashMap::new();
// map.insert("A", vec!["B", "C", "D"]);
// map.insert("B", vec!["A", "C"]);
// map.insert("C", vec!["A", "E"]);
// map.insert("D", vec!["A"]);
// map.insert("F", vec![]);
//
// let mut deps = UnGraph::new_undirected();
// let mut deps_idxs = HashMap::new();
// for node in map.keys() {
// let idx = deps.add_node(node.to_owned());
// deps_idxs.insert(node.to_owned(), idx);
// }
// for (node, edges) in map {
// for edge in edges {
// let Some(node_idx) = deps_idxs.get(node) else {
// unreachable!()
// };
// let node_idx = node_idx.to_owned();
// deps_idxs.entry(edge).or_insert_with(|| deps.add_node(edge));
// let Some(edge_idx) = deps_idxs.get(edge) else {
// unreachable!()
// };
// let edge_idx = edge_idx.to_owned();
// deps.add_edge(node_idx, edge_idx, ());
// }
// }
//
// println!(
// "{:?}",
// petgraph::dot::Dot::with_config(&deps, &[Config::EdgeNoLabel])
// );
//
// todo!();

let start = Instant::now();

let owner_id: String = std::fs::read_to_string("owner_id.txt").unwrap();
Expand Down

0 comments on commit bff6ab6

Please sign in to comment.