public static function find_polygons_in_graph(Graph $graph)
{
$polygonList = array();
$vertices = $graph->vertices;
$edges = $graph->edges;
foreach ($vertices as $guid => $point) {
$polygonList = array_merge($polygonList, polygon_finder_recursive($graph, array(), $point, null, false));
}
return $polygonList;
}