X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgraphcut.h;h=9b15a44cbe90ae069c58dcdd361581f044535d5e;hp=b08577076b5beeb9be463dd8f354034d779e7bb7;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hpb=c4e8d97d137d32868c97280106819a1f868e361c diff --git a/lib/graphcut.h b/lib/graphcut.h index b085770..9b15a44 100644 --- a/lib/graphcut.h +++ b/lib/graphcut.h @@ -38,6 +38,11 @@ struct _halfedge { struct _node { halfedge_t*edges; + union { + int tmp; + int component; + int color; + }; int nr; }; @@ -49,6 +54,7 @@ struct _graph { graph_t* graph_new(int num_nodes); halfedge_t*graph_add_edge(node_t*from, node_t*to, weight_t forward_weight, weight_t backward_weight); weight_t graph_maxflow(graph_t*graph, node_t*pos1, node_t*pos2); +int graph_find_components(graph_t*g); void graph_delete(graph_t*); #endif