1 /* -*- mode: C -*- */
2 /* vim:set ts=4 sw=4 sts=4 et: */
3 /*
4 IGraph R library.
5 Copyright (C) 2003-2013 Gabor Csardi <csardi.gabor@gmail.com>
6 334 Harvard street, Cambridge, MA 02139 USA
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 02110-1301 USA
22
23 */
24
25 #include <igraph.h>
26
27 #include "test_utilities.inc"
28
main()29 int main() {
30 igraph_t g1, g2;
31
32 igraph_rng_seed(igraph_rng_default(), 9275);
33
34 igraph_erdos_renyi_game(&g1, IGRAPH_ERDOS_RENYI_GNP, 10, .3,
35 IGRAPH_UNDIRECTED, IGRAPH_NO_LOOPS);
36 igraph_correlated_game(&g1, &g2, .9, .3, /* permutation=*/ 0);
37
38 IGRAPH_ASSERT(igraph_vcount(&g1) == igraph_vcount(&g2));
39
40 igraph_destroy(&g2);
41 igraph_destroy(&g1);
42
43 VERIFY_FINALLY_STACK();
44
45 return 0;
46 }
47