Visual network topoloy

From Artificial Neural Network for PHP
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

PNG image of network topology

require_once 'ANN/Loader.php';

use ANN\Network;
use ANN\NetworkGraph;

try
{
  $objNetwork = Network::loadFromFile('xor.dat');
}
catch(Exception $e)
{
  die('Network not found');
}

$objNetworkImage = new NetworkGraph($objNetwork);

$objNetworkImage->saveToFile('network.png');

Output

Image of network toplogy