Skip to main content

graco/
lib.rs

1extern crate num_cpus;
2extern crate petgraph;
3extern crate structopt;
4#[macro_use]
5extern crate log;
6extern crate env_logger;
7extern crate rand;
8extern crate threadpool;
9
10pub mod activities;
11pub mod ant;
12pub mod colony;
13pub mod cycle;
14pub mod io;
15
16#[derive(Clone, Debug)]
17pub enum Objective {
18    /// Visit all of the nodes of the graph (will fail on an incomplete graph)
19    VisitAllNodes,
20    /// Visit exactly this many nodes of the graph
21    VisitNNodes(usize),
22    /// Visit node indexed by the provided index
23    ReachNodeIdx(usize),
24    /// Reach a dead end, this can be useful for going as far down as possible
25    ReachDeadEnd,
26}