Пример #1
0
 /**
  * Main program.
  *
  * @param array $args Command-line arguments.
  * @return integer Zero on success; non-zero on failure.
  */
 public static function main($args)
 {
     printf("DigraphAsMatrix main program.\n");
     $status = 0;
     $g = new DigraphAsMatrix(4);
     AbstractDigraph::test($g);
     $g->purge();
     AbstractDigraph::testWeighted($g);
     $g->purge();
     return $status;
 }