pub fn new(
        input_number: usize,
        output_number: usize,
        innov_record: &mut InnovationRecord,
    ) -> Self {
        let mut network = NetworkGraph::new_disconnected(input_number, output_number);

        for i in 0..input_number {
            for j in 0..output_number {
                let innov_number = innov_record.new_connection(i, input_number + j);
                let edge_data = EdgeData::new(1.0, innov_number);

                network.graph.add_edge(
                    NodeIndex::new(i),
                    NodeIndex::new(input_number + j),
                    edge_data,
                );
            }
        }

        network
    }
// Creates a new network graph, fully connecting input and output nodes
Creates a new network graph, fully connecting input and output nodes
Creates a new network graph fully connecting input and output nodes
pub fn new(
        input_number: usize,
        output_number: usize,
        innov_record: &mut InnovationRecord,
    ) -> Self {
        let mut network = NetworkGraph::new_disconnected(input_number, output_number);
        for i in 0..input_number {
            for j in 0..output_number {
                let innov_number = innov_record.new_connection(i, input_number + j);
                let edge_data = EdgeData::new(1.0, innov_number);
                network.graph.add_edge(
                    NodeIndex::new(i),
                    NodeIndex::new(input_number + j),
                    edge_data,
                );
            }
        }
        network
    }
pub fn new ( input_number : usize , output_number : usize , innov_record : & mut InnovationRecord , ) -> Self { let mut network = NetworkGraph :: new_disconnected ( input_number , output_number ) ; for i in 0 .. input_number { for j in 0 .. output_number { let innov_number = innov_record . new_connection ( i , input_number + j ) ; let edge_data = EdgeData :: new ( 1.0 , innov_number ) ; network . graph . add_edge ( NodeIndex :: new ( i ) , NodeIndex :: new ( input_number + j ) , edge_data , ) ; } } network }
Creates a new network graph, fully connecting input and output nodes
Creates a new network graph fully connecting input and output nodes
input_number
usize
output_number
usize
innov_record
&mut InnovationRecord