Visual network topoloy: Difference between revisions

From Artificial Neural Network for PHP
(New page: == PNG image of network topology == <source lang="php"> require_once 'ANN/ANN_Network.php'; try { $network = ANN_Network::loadFromFile('xor.dat'); } catch(Exception $e) { print 'Netw...)
 
No edit summary
Line 18: Line 18:
$image->printImage();
$image->printImage();
</source>
</source>

== Output ==

[[Image:network.png]]

Revision as of 16:48, 6 January 2008

PNG image of network topology

require_once 'ANN/ANN_Network.php';

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

$image = new ANN_NetworkGraph($network);

$image->printImage();

Output

Network.png