libFirm 1.20
libfirm/adt/bipartite.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
00003  *
00004  * This file is part of libFirm.
00005  *
00006  * This file may be distributed and/or modified under the terms of the
00007  * GNU General Public License version 2 as published by the Free Software
00008  * Foundation and appearing in the file LICENSE.GPL included in the
00009  * packaging of this file.
00010  *
00011  * Licensees holding valid libFirm Professional Edition licenses may use
00012  * this file in accordance with the libFirm Commercial License.
00013  * Agreement provided with the Software.
00014  *
00015  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00016  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
00017  * PURPOSE.
00018  */
00019 
00026 #ifndef FIRM_ADT_BIPARTITE_H
00027 #define FIRM_ADT_BIPARTITE_H
00028 
00029 #include "../begin.h"
00030 
00040 typedef struct bipartite_t bipartite_t;
00041 
00044 FIRM_API bipartite_t *bipartite_new(int n_left, int n_right);
00046 FIRM_API void bipartite_free(bipartite_t *gr);
00048 FIRM_API void bipartite_add(bipartite_t *gr, int i, int j);
00050 FIRM_API void bipartite_remv(bipartite_t *gr, int i, int j);
00053 FIRM_API int bipartite_adj(const bipartite_t *gr, int i, int j);
00055 FIRM_API void bipartite_matching(const bipartite_t *gr, int *matching);
00056 
00060 FIRM_API void bipartite_dump_f(FILE *f, const bipartite_t *gr);
00061 
00065 FIRM_API void bipartite_dump(const char *name, const bipartite_t *gr);
00066 
00069 #include "../end.h"
00070 
00071 #endif /* _BIPARTITE_H */