The Complete SPRLIB & ANNLIB

check_all_network

- check the consistency of a network

SYNOPSIS

int check_all_network (net)

ARGUMENTS

NET *net A pointer to a NET structure.

RETURNS

TRUE if net is not correctly constructed, FALSE if not.

FUNCTION

This function first checks whether the global variable NoChk is set (see UTILITY-variables). If so, it will print a warning message and return immediately. This switch has been built in since checking of large networks can be quite time consuming. If the network should be checked, the function calls the functions check_net, check_units, check_links, check_weights and check_io_conn. Finally, if the network has type FFNET or SHAREDNET (see NET-flags), the function check_ff_net is called.

NOTE

The function may be quite time-consuming for large networks, since all paths from an input unit to an output unit and vice versa are checked by check_io_conn.

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998