#!/usr/bin/php $info) { $toetsen[$toets]['pta_id'] = $toetstranslate[$toets]; } $collections = array(); make_collections($collections, $toetsen); //print_r($collections); //print_r($toetstranslate); $ret = check_consistent_and(false, $toetsen, $collections, $momentinfos); echo("ret=$ret\n"); foreach ($collections[0]/*['subgraphs'][0]*/['list'] as $toets) { $count = count($toetsen[$toets]['neighbors']); echo("$toets alwaysfits={$toetsen[$toets]['alwaysfits']}, subgraph_id={$toetsen[$toets]['subgraph_id']} subgraph_order={$toetsen[$toets]['subgraph_order']} $count\n"); // print_r($toetsen[$toets]); } //print_r($collections[0]['subgraphs']); /* calc_optimal_order_of_subgraph($collections[0]['subgraphs'][0]['list'], $toetsen); */ /* foreach ($collections[0]['subgraphs'][0]['list'] as $toets) { $count = count($toetsen[$toets]['neighbors']); echo("$toets alwaysfits={$toetsen[$toets]['alwaysfits']}, subgraph_id={$toetsen[$toets]['subgraph_id']} subgraph_order={$toetsen[$toets]['subgraph_order']} $count\n"); } */ /* $list = $collections[0]['subgraphs'][0]['list']; $tmplist = array(); foreach ($list as $elt) { $tmplist[$elt] = $toetsen[$elt]['neighbors']; } $wildfire = array(); $wildfire[] = $list[0]; $neighbors = $tmplist[$list[0]]; unset($tmplist[$list[0]]); foreach ($neighbors as $neighbor => $aantal) { if (!isset($tmplist[$neighbor])) { unset($neighbors[$neighbor]); continue; } } //print_r($tmplist); expand($wildfire, $tmplist, $neighbors); echo("selected order\n"); //print_r($wildfire); foreach ($wildfire as $toets) { $count = count($toetsen[$toets]['neighbors']); echo("$toets alwaysfits={$toetsen[$toets]['alwaysfits']}, subgraph_id={$toetsen[$toets]['subgraph_id']} $count\n"); } */ //print_r($momentinfos); //print_r($toetsen); ?>