pub trait NetworkLike<N: NodeLike, E: EdgeLike> {
    // Required methods
    fn edges(&self) -> Vec<&E>;
    fn inputs(&self) -> Vec<&N>;
    fn hidden(&self) -> Vec<&N>;
    fn outputs(&self) -> Vec<&N>;

    // Provided method
    fn nodes(&self) -> Vec<&N> { ... }
}
Expand description

Declares a structure to have network-like properties.

NetworkLike sits at the core of this crate. Together with NodeLike and EdgeLike it provides the interface to start using this crate. Structures that are NetworkLike can be fabricated and evaluated by the different implementations of the Fabricator, Evaluator, StatefulFabricator and StatefulEvaluator traits.

Required Methods§

source

fn edges(&self) -> Vec<&E>

source

fn inputs(&self) -> Vec<&N>

source

fn hidden(&self) -> Vec<&N>

source

fn outputs(&self) -> Vec<&N>

Provided Methods§

source

fn nodes(&self) -> Vec<&N>

Implementors§