Visual network topoloy

Revision as of 13:12, 1 June 2011 by Thwien (talk | contribs) (PNG image of network topology)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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