# HG changeset patch # User marci # Date 1084206741 0 # Node ID 1faa5bec1717d4b300998958e51854a854d376c4 # Parent a6e2b02f496a254ce413eee1e91084744c19ae89 complete graphs diff -r a6e2b02f496a -r 1faa5bec1717 src/work/jacint/graph_gen.h --- a/src/work/jacint/graph_gen.h Mon May 10 16:31:48 2004 +0000 +++ b/src/work/jacint/graph_gen.h Mon May 10 16:32:21 2004 +0000 @@ -62,7 +62,7 @@ } /// Generates a complete graph in the undirected sense - /// with n nodes and m edges. + /// with n nodes. /// Before generating the random graph, \c g.clear() is called. template void completeGraph(Graph& g, int n) { @@ -74,5 +74,39 @@ for (int j=i+1; j + void completeBidirectedGraph(Graph& g, int n) { + g.clear(); + std::vector nodes; + for (int i=0; i + void completeBipartiteGraph(Graph& g, int a, int b) { + g.clear(); + std::vector s_nodes; + std::vector t_nodes; + for (int i=0; i