sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
bc977f013a875bac8aec2863095de7540aa1e048f94b03ffbcecef33e66a3b88 | C | 2,820 | 86 | /*
igraph library.
Copyright (C) 2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... |
b95c6e06ebc82ffc8dfe0cfa7ece5679a82b43018431e0ebfe5196b7db172c17 | C | 2,821 | 83 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
f904c92eff4ac93f0fe06e138d89945ac2a5f4a4f1552985467f267658d591ef | C | 2,823 | 81 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
7f578db93bfcef9df058dbabc97bc368f40f81dac7009b4ab96bed1532159bb0 | C | 2,827 | 74 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
89e4cdff37085833557d8f2d3ff14045b741261c633b20f67eb6bcb37a79284c | C | 2,836 | 86 | /*
igraph library.
Copyright (C) 2006-2022 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
898c419e417b47aeae90b21aaa5bce18219a5aa2d6a3b5c58c2f53becaa401c5 | C | 2,838 | 160 | #include "f2c.h"
#include "fio.h"
/* Compile this with -DNO_TRUNCATE if unistd.h does not exist or */
/* if it does not define int truncate(const char *name, off_t). */
#ifdef MSDOS
#undef NO_TRUNCATE
#define NO_TRUNCATE
#endif
#ifndef NO_TRUNCATE
#include "unistd.h"
#endif
#ifdef KR_headers
extern char *strcpy();
... |
8459107220be2f3e64e5c86c4d626595212759c09bc37b5487cbae78137b6c03 | C | 2,840 | 89 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
53b7f2de3cfae129a34e2fe74c179db39b72bb35804e77c60efa5256a516a19a | C | 2,852 | 81 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
d5d9984947a43107fc5126e08608ea3a2ae4315aab48a62e4739c282ee8dfa4d | C | 2,853 | 86 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
986f9472c3ed871a1ff05206384d9435c93f850b2b86ec4b987622430137a869 | C | 2,856 | 82 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
c51deafa87743968daa9e8231b6433eed42a75161874ce1d6333ae2bd489a9f3 | C | 2,865 | 103 | /*
igraph library.
Copyright (C) 2021-2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
63fc37cf30a1bc47cf2ba3ae7bdc8b3a610ea0078c8c1aee2261ad47ba82c30d | C | 2,872 | 86 | /*
igraph library.
Copyright (C) 2021-2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
e581c4cdfe1436e71248d18672c51708840e426caffeb6d1a1661875712e1eda | C | 2,878 | 74 | /* igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your opti... |
bd3df95a113ac021e65e2990289db945bde52adbcfd21f89413c27ef9fffa9ed | C | 2,883 | 88 |
#include <igraph.h>
#include "test_utilities.h"
void rand_weights(const igraph_t *graph, igraph_vector_t *weights) {
igraph_int_t ecount = igraph_ecount(graph);
igraph_vector_resize(weights, ecount);
for (igraph_int_t i=0; i < ecount; i++) {
VECTOR(*weights)[i] = RNG_UNIF01();
}
}
igraph_rea... |
2fd4b789fec4d0a82ec79819f9e38a48f8e084ec629d920d934eca609f5f91f9 | C | 2,889 | 77 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
2dade204baf4c1ede41be7ad99b64e3699bc111c05119d1386e695a2c5ab1812 | C | 2,890 | 128 | /*
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:38:32 +0900
*/
#include "mtsim.h"
#define MAXIT 100
#define PI (3.141592653590) /* Pi */
double Stokes_function(double ff, double gr, double fb)
{
double result;
result = (ff-f... |
3522136dcf0e54e5a7baf104b851e2b4e2892c05d3883738467aca303ac7b523 | C | 2,891 | 84 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
a06a35b37ab067f9533bdcfd345085bbf5ac045cf8c85527416141894079995b | C | 2,893 | 84 | /*
igraph library.
Copyright (C) 2010-2021 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
bda1f4201563354565e82668127928bc35d4bfa381eb2aec092d34a5f96ba36b | C | 2,896 | 80 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
3cf051d1f82141c1bff5a6d1d4918bace5dbb1547e2f373b9641b255fbced698 | C | 2,899 | 86 | /*
igraph library.
Copyright (C) 2025 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
1016e3cea886696b4a952db557750d49c9df9ca899bd1744d8b8523611a894b3 | C | 2,907 | 88 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
b0ca8316e3275dc7ae4d044c5b5c107ff93d229bb19937284e683a96950d19e8 | C | 2,909 | 79 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
4bcdabf29ee6d9b2581aae0ca33354d98cb9954821bcc0bbde5932180e6a6314 | C | 2,910 | 87 | /*
* filename: save_logs.c
* this code is to store simulation results of the position of MTs and pronucleus in text files
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:50:15 +0900
*/
#include "mtsim.h"
void save_logs(int i, int... |
95993e1498503e93eb14fda4d98cfeabe92c2f67ffc75759ed369b09fbc62945 | C | 2,937 | 114 | /* microsat.c: This function takes ms output and converts it is microsatellite
length variation data. The output has on each line the set of lengths
of the nsam individuals (relative to the ancestral length).
Example usage: ms 10 5 -t 4.0 | microsat > msat.dat
To compile: gcc -o microsat microsat.c rand1... |
59b6bd9ff1e7c480f1a88160815ba38ed612fb69240efb525844bacb69f93eca | C | 2,949 | 85 | /*
igraph library.
Copyright (C) 2025 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
ba16fa2ec1748c16bcd01fdaf1bf372004e661193dfa6355956ce472a62d7034 | C | 2,959 | 77 | /*
igraph library.
Copyright (C) 2025 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
9a0e9b658bec9a87217a42a998e70244ae4546f37d2dc307889ac7b539011f9a | C | 2,960 | 116 | /* -- translated by f2c (version 20240504).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... |
d25c89c0560596b67a3ccbea077a7df0a4bce6cbfe93fc9b4f7d570ed4439811 | C | 2,967 | 104 | /*************************************************************************
* MATLAB MEX ROUTINE inplaceprod.c
*
* > inplaceprod(A,B)
* performs inplace (i.e., without allocate array) complex array product
* > A(:) = A(:).*B(:);
*
* User must make sure A is not shared by other array.
* B must have the same size... |
9291d70a8b27d731b94456d69b7736eb6b959f4a463b6ad7b24c2582f4065955 | C | 2,970 | 91 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
aa6c091183042806546f64f7317d9794e65d0ddecc61f2704b4ca8e11dfdb0f1 | C | 2,987 | 69 | /*
* filename: color_setting.c
* this code is to discriminate the results from distinct parameter sets with
* different colors: case0=black, case1=violet(pink), case2=blue, case3=green, case4=orenge, and case5=red
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* L... |
a71fa8f6e45ad1d40ceeb59be29d531ab09d94c052abf585981917f1d337dd75 | C | 2,988 | 85 | /* wrcnf.c (write CNF-SAT problem data in DIMACS format) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2010-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free softwa... |
558f3deeacca16bf1119c5df2479b08a6d6067021e9b0a3dc6c002f3bfcb28ad | C | 2,990 | 102 | /*<html><pre> -<a href="qh-user_r.htm"
>-------------------------------</a><a name="TOP">-</a>
usermem_r.c
user redefinable functions -- qh_exit, qh_free, and qh_malloc
See README.txt.
If you redefine one of these functions you must redefine all of them.
If you recompile... |
521fe2e019daffd9d32f717477e822828a4213d6f2f9e4adedaa5c6114c50867 | C | 2,997 | 96 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
138c83b269610366badac6fcc5ddba4e0b34f463e11047980ae988aea6f473ea | C | 3,041 | 98 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
d8cfe04f420e76bef90d9f8629f551c69da41f991032db8f432493ad35cf64ce | C | 3,048 | 83 | /* igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your opti... |
bbf96c7a69314c2a885226ce00df86e46fb989b1f2ad175426549272726db031 | C | 3,059 | 78 | /*
igraph library.
Copyright (C) 2003-2020 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
6475ca19ab6db9f312ff8a3a0a4772b304219025ff73e75aff35d2052b1fc057 | C | 3,068 | 85 | /*
* filename: save_logs.c
* this code is to store simulation results of the position of MTs and pronucleus in text files
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:49:08 +0900
*/
#include "mtsim.h"
void save_logs(int i, int... |
fb578ead04ce0cf3c16a136768ccdc731911b657b336891677b9b70612cb71da | C | 3,069 | 106 | /*
igraph library.
Copyright (C) 2020-2024 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
b5131041f4da03d887bb2972fee44094da5ffbe276fc19dcbcaadc502958fcd1 | C | 3,071 | 92 | /*
igraph library.
Copyright (C) 2013 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2... |
42c1b9125f715822b3b2beba8b3c748e620562f150e3b5ce0a7fd9901b7cb767 | C | 3,081 | 72 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
aa24b8ec63f941b5ff927b5f0aa551902d8f29c28aa8a164ef39a1798f189499 | C | 3,083 | 96 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
a60bc9fbb23f2cf9247d24ce32cbc71d0bfd9b292ea969792fa431ec7f6ed402 | C | 3,103 | 102 | /*
prob.c - probability calculations used in scythe.
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "scythe.h"
float *qual_to_probs(const char *qual, quality_type q_type) {
/*
Converts qualities to the probability the base is correct.
There are two quality-... |
6e4e3fc41bf26e16e6836e9ae1d6cfad5468fc155d40810ea79aa489c5ef605d | C | 3,112 | 119 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
c8fa48b0ece4d39855fd20fd0f861be8b743a32b5ff5d1c9f9b10e023a94bddd | C | 3,112 | 86 | /* proxy1.c */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2013, 2018 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribute it and/or modify it... |
b6b447b124678f6746a5c04615a0f89278ecedc69d2895236a16b7730768a29b | C | 3,129 | 96 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
b8694386754b5b15ecd4bf07f27f1d52f65c356631a6314862eb42560610dce6 | C | 3,141 | 111 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
19d589b89184408802a506c2bfca218501580d46f3c2ab4766f4757d88704b33 | C | 3,144 | 75 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
7b9fee14a95887e164f147c813e297b16d9e34cefce41b958c36a02e8afdce65 | C | 3,158 | 87 | /*
igraph library.
Copyright (C) 2006-2025 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
443e6a59cc3be127861487cd5df5742480cff1b6088cc7b079b4dd36550d9c7c | C | 3,168 | 111 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
4030f1e7a994ab58dad4e9c43325b6474baed5c695b7b16e0355080f2ba1f033 | C | 3,172 | 97 | /*
igraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
4053b05c5bd4edf9059b390918a65fe094e816fa0214a78825b4d0871dc0a5b2 | C | 3,176 | 97 | /*
igraph library.
Copyright (C) 2023 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
59bda23fb233cc64a6a3d371dcbb50b76cf4afe313ae9a38356a00592d552c3c | C | 3,192 | 95 | /*
igraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
d199d8b8d52090b95bacbb51dad364f28a27f265965070f6145538140526c049 | C | 3,196 | 88 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
28260441d45cb2c14b2bf8f6c0f6b66d1180eeef9a764fe463066dd4386efea0 | C | 3,203 | 94 | /*
igraph library.
Copyright (C) 2008-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
db31fca2e972d37a245712c89825f3925ae275cc91434fdfb4af27eb7623839f | C | 3,204 | 73 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
9afe3a22341707f2f8c0e927db2187ef3add139b1e7633e468a2de9c0c37eae6 | C | 3,206 | 73 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
3c02b35276c2124c58360d4d9e6176a67136ea08708a5ecb769fa8f8c45db625 | C | 3,209 | 99 | /* qmd.c */
#include "env.h"
#include "qmd.h"
void genqmd(int *neqns, int xadj[], int adjncy[], int perm[],
int invp[], int deg[], int marker[], int rchset[], int nbrhd[],
int qsize[], int qlink[], int *nofsub)
{ static const char func[] = "genqmd";
xassert(neqns == neqns);
xassert(xadj ==... |
327966f698166d81a2b2465a2c487e14ffa95585795232a423b9bb980363c895 | C | 3,217 | 96 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
790f6e17cb625044096f06c49fc5be269d62a5279126d82ff23c55e8cdd13964 | C | 3,220 | 105 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
b8c24de86c1248c23d59fd40d30a977d461f4380cb7335757dc6b4cc0b07e145 | C | 3,224 | 102 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
c917d9d19a67bf13c6025b5a8ee5de007d0e029a3847f255934bfb2c95ba7993 | C | 3,224 | 123 |
#include <igraph.h>
#include "core/genheap.h"
#include "test_utilities.h"
typedef struct intpair_t {
int x, y;
} intpair_t;
int cmp(const void *a, const void *b) {
const intpair_t *sa = a, *sb = b;
if (sa->x < sb->x) return -1;
if (sa->x > sb->x) return 1;
if (sa->y < sb->y) return -1;
if (... |
194efd4f0dede0c778844dd0a01fcdae6e159e275b842ec023c30e0d7299dd6f | C | 3,228 | 89 | /*
igraph library.
Copyright (C) 2026 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
d313e025b3e6016cac2d305f31aa5626831dd0e0f2632b6fe5504ac2e8cb5e35 | C | 3,253 | 100 | /* wrcc.c (write graph in DIMACS clique/coloring format) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2009-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free softwa... |
2158a86e89886a1557c92fea7978c78a4cd4673278f29a8a6e43d026fe8babe2 | C | 3,262 | 89 | /*********************************************************************
*
* ANSI C Example program:
* Acq-IntClk.c
*
* Example Category:
* AI
*
* Description:
* This example demonstrates how to acquire a finite amount of data
* using the DAQ device's internal clock.
*
* Instructions for Running:
... |
f185e6e5559e9a000cb98dd40a30ec37d3cf17b8d77334d23c050b5fc324f51d | C | 3,270 | 99 | /* -*- mode: C++ -*- */
/*
igraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... |
df28b9eeb6628c85527626027d0df12744bd1a1132c8b929756c978c9b5e8773 | C | 3,274 | 99 | /*
igraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
bd9c0981d83574a8928af97bef52b32d1bd1f4c3103fd6a15ef00e6469cbcb0e | C | 3,284 | 90 | /*
igraph library.
Copyright (C) 2007-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
c58c55010ca2962d7994801a7820ce08fad43f5fca0f320d24a5e99ad5faa10e | C | 3,289 | 107 | /* -- translated by f2c (version 20240504).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... |
31ee5b79e06bd3f9b6dc891c300104bcdc50f6ecd069e87e84d314df7b9d4ef7 | C | 3,304 | 102 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
342d0bf120b4c11017d2540d3e1b004da6caff941d61a468c7f13ec8725171f1 | C | 3,313 | 140 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t g;
igraph_bool_t res;
igraph_int_t root;
/* the null graph is not a tree */
igraph_empty(&g, 0, 0);
igraph_is_tree(&g, &res, &root, IGRAPH_ALL);
IGRAPH_ASSERT(! res);
igraph_destroy(&g);
/* the single-ve... |
c4cc49655243ca68cd8f60fef153dc4204b46589c1c74cc566070afe09cac579 | C | 3,317 | 102 | /*
igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
334e133a96b5c34481c70c1bc12233ddeb6738c207d2452b6edc92427a2664c5 | C | 3,325 | 97 | /*
igraph library.
Copyright (C) 2010-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
9b97a5735ea52136a46543efbc03d55160ca7086ed20feb2f5daa27581f1e5d4 | C | 3,325 | 108 | /* str2num.c (convert string to double) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2000 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribu... |
da6713d34e77a7361bc5b48d5ff9ab16d631b8a029bcfad91e3cef9f0d4f7496 | C | 3,339 | 94 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
18e19843931262798a57633b6c1ad2ec0732bf86fc059eb29e239eb51c74a299 | C | 3,354 | 98 | /*
igraph library.
Copyright (C) 2009-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either vers... |
e9a66ab8b3e07f062364acfe478d2c9865f1a29dd442e143bee3ee918cf1854c | C | 3,356 | 81 | /*
igraph library.
Copyright (C) 2006-2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
a5fe79e2b402955ad8711aa88d7e57c9d738713c63a2e8be3c9012f804d56c07 | C | 3,364 | 90 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
fa5f555642cd55188f05b3fceee5b063c38f2e1940540f8bd76abe450b11cf1e | C | 3,373 | 100 | /*
igraph library.
Copyright (C) 2024 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
f254c6751494a1ba1ccc5baae470c50f6c21ff6def8d42ab1f9c9a5466c91929 | C | 3,382 | 143 | /* -- translated by f2c (version 20240504).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of the com... |
0f8886bb18e8331dfa36317726cc6d233a4ae825cd121b5cc65661ee7d58f119 | C | 3,395 | 99 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
4800373246513e4b2ca8a65931cc5feb734f02da35ed461f3ed80dfdbd2c3150 | C | 3,395 | 96 | /*
igraph library.
Copyright (C) 2024 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
6eadb0d87486dcb40954c447572fb11398a76e8a951d6f82c6d64a1d1011c30a | C | 3,404 | 105 | /*
Test suite for the Fisher-Yates shuffle.
Copyright (C) 2011 Minh Van Nguyen <nguyenminh2@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... |
3011ef43590cad2e8809b925d8c73e9757af49f9d2677187bdf7345f0772cf07 | C | 3,405 | 93 | /* ========================================================================= */
/* === AMD_valid =========================================================== */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... |
9ca0109a04aa104fe9ce64f487f2971b3b7ff40d8dc08bdbafb828c0f309e18e | C | 3,406 | 88 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
bb00c4d7e66041d6f121c97d56032cadfcab4bc5061238ecb402f4b6cf92ee58 | C | 3,406 | 93 | /* igraph library.
Copyright (C) 2022 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your opti... |
dfe95167f84e88157e68742cc3b7eeb53075204934161a48f6079f0c6e58df51 | C | 3,414 | 99 | /*
igraph library.
Copyright (C) 2010-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
088369c677b9e5b028d4db3b6763972a3c7222d3cc73107a8d8a421d4f501161 | C | 3,424 | 102 | /* wrmaxf.c (write maximum flow problem data in DIMACS format) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2009-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free ... |
048cb00a12329187d772afbd3bc9c496f48e2fdb6b96128aeef46fd616745395 | C | 3,451 | 100 | /*
igraph library.
Copyright (C) 2024 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
0319204ef02bc1a97b50698b82ce34502026cf87d3ae63bcf1da83b0252378e5 | C | 3,477 | 99 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
a818513413f1b75efe232ce080eb79c7e5f5f58d9492761f159f16ed2b133306 | C | 3,482 | 101 | /*
igraph library.
Copyright (C) 2022 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later vers... |
ea306dbb711d2f1885d52f89e13da3caed90d2d9bbf33c37c715578fefe0e50c | C | 3,484 | 99 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
9195e1e2c2d761bf17e95d5fd46d1782b13405a7f1e647f5621e679cb82657c4 | C | 3,487 | 105 | /* wrasn.c (write assignment problem data in DIMACS format) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2009-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free sof... |
3f731d9979f6c3f84013b03da9d098218abb87b9bf4ffdb6b49e1481547b298e | C | 3,505 | 98 | /* -*- mode: C++ -*- */
/*
igraph library.
Copyright (C) 2011-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... |
582f828fbc41184fa8b1dce2a5bc20668fe92a5cae51f04ecd0bdfc76d5d8ea3 | C | 3,506 | 108 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
72e349f56410a8636263c22c93657208552d835f872ddccf62b4893566d1cfac | C | 3,521 | 135 | /* fvs.c (sparse vector in FVS format) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribut... |
e2f0535bad2e52c2e88767ccc551a06f5dda67540656ce019681d69d2ae13b46 | C | 3,527 | 74 | #include "cs.h"
/* sparse QR factorization [V,beta,pinv,R] = qr (A) */
csn *cs_qr (const cs *A, const css *S)
{
CS_ENTRY *Rx, *Vx, *Ax, *x ;
double *Beta ;
CS_INT i, k, p, n, vnz, p1, top, m2, len, col, rnz, *s, *leftmost, *Ap, *Ai,
*parent, *Rp, *Ri, *Vp, *Vi, *w, *pinv, *q ;
cs *R, *V ;
cs... |
a5360ddd1f97cc9be31a7957753b84ac434d9b935fa2432271c9bae67653b81d | C | 3,533 | 83 | /*
igraph library.
Copyright (C) 2003-2021 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later... |
e3ea24d30ed31775771d49d0c8cdfc1fb266e4fc2187c515a373b57318fbed74 | C | 3,538 | 108 | /* strong.c (find all strongly connected components of graph) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2009-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free s... |
c100920bb1b8031dabd8429060f59d49231684be186d031e94bcd99434d7a7f8 | C | 3,549 | 87 | /*
igraph library.
Copyright (C) 2021 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your o... |
5251061fafc10f91dd58a8aa359cb0dc71e0acbe9d8430c3ec031b1e421f0240 | C | 3,561 | 120 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t graph;
igraph_vector_int_t membership, generators;
igraph_rng_seed(igraph_rng_default(), 42);
igraph_vector_int_init(&membership, 0);
igraph_vector_int_init(&generators, 0);
printf("Null graph:\n");
igraph_empt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.