Visual network topoloy: Difference between revisions

From Artificial Neural Network for PHP
Line 2: Line 2:


<source lang="php">
<source lang="php">
require_once 'ANN/ANN_Loader.php';
require_once 'ANN/Loader.php';


try
try

Revision as of 11:29, 22 December 2009

PNG image of network topology

require_once 'ANN/Loader.php';

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

$objNetworkImage = new ANN_NetworkGraph($objNetwork);

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

Output

Image of network toplogy