Polygon::find_polygons_in_graph PHP Method

find_polygons_in_graph() public static method

public static find_polygons_in_graph ( Graph $graph )
$graph Graph
    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;
    }