sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
2c2197bad96bb38e9663e05f30cb2564b9886d8e5671608a5683162b58081fb3 | C | 1,816 | 56 | /*
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 ... |
ebefea8bfd44fe1790f86b1d2c2d65d60f64bd5153d23f66543894f0502bac68 | C | 1,818 | 60 | /*
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 ... |
7e5218b9a31b217187d7d3b71942c44dd3896bba722a5521e81759c9d90eee96 | C | 1,829 | 60 | /*
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... |
a77dfaa82576ddfbba4cb5f7f1dbc2460dfc893374330dbf550f5f8ae0c22bc7 | C | 1,829 | 61 | /*
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... |
94a1ada9e14479ee52c4ba6259c0f75664bf92a40e75bb1ca6b930315a78fa38 | C | 1,830 | 58 | /*
igraph library.
Copyright (C) 2007-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... |
a8d19d13a6c3f6c900a5a869eca3dd520a03dc399635f4d1b1bbaf9b139b1a1a | C | 1,830 | 67 | /*
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... |
36b485c47b60fb8cfd6380b793894008cd63631ea457a9413fd7c5ff39494870 | C | 1,832 | 65 | /*
igraph library.
Copyright (C) 2010-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... |
7693b9022b546a6ddd58829c01336a0134f14c19b586025152aae053c1e98a73 | C | 1,837 | 63 | /*
* PCG Random Number Generation for C.
*
* Copyright 2014-2019 Melissa O'Neill <oneill@pcg-random.org>,
* and the PCG Project contributors.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
* Licensed under the Apache License, Version 2.0 (provided in
* LICENSE-APACHE.txt and at http://w... |
1a5cf4e0e5f7ff4eab2ca3cddafc54ebf1b577bb020f495b0b992091770fa52d | C | 1,842 | 56 | /*
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... |
e6092ef8eba577cb9186a8a7744782b527e6c1afd6b66989f1e26326b3789473 | C | 1,845 | 64 | /* -- 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... |
fbdf097278e377574f2f1bc8e6ee535f4decd5abb839b9570c5086e5a9e211a8 | C | 1,845 | 62 | /*
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... |
a4282ec46cab2b6f640028a3f7fa9195a9fa6d1b8a62b49d9b98b21850a6bc9a | C | 1,848 | 63 | /*
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... |
f66e0c6cfd1ff81a83d90c5f45d8d1ab0825f249d2bf665a83ebad99911bbfed | C | 1,849 | 58 | /*
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 ... |
1a50abd6e7ee5658c8885a304f21891fc58c6dee23a50e529a3fb35819bc168c | C | 1,850 | 59 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
3debdb7c66abbf0c4310daeb53ccc8f19b422fe219ef707a598a68c66dca932e | C | 1,852 | 66 | /*
* filename: store_graphs.c
* this code is to save graphs
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:46:15 +0900
*/
#include "mtsim.h"
void store_graphs(void) {
char filefin[40];
sprintf (filefin, "xwd -name \'fin\' -o... |
923860effac493974dea3b93378541da4be057706a5798b18adb178bfa1dc3df | C | 1,852 | 66 | /*
* filename: store_graphs.c
* this code is to save graphs
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:47:29 +0900
*/
#include "mtsim.h"
void store_graphs(void) {
char filefin[40];
sprintf (filefin, "xwd -name \'fin\' -o... |
c43ee778c703d9fd115e3985128d1d69db171e7bb759bdfcb1ec5547d6dde4f8 | C | 1,852 | 66 | /*
* filename: store_graphs.c
* this code is to save graphs
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:48:36 +0900
*/
#include "mtsim.h"
void store_graphs(void) {
char filefin[40];
sprintf (filefin, "xwd -name \'fin\' -o... |
ccfe0c070cd91b7da00d2b2072ec9ec5138986a9672b296d4c5ad0028f009640 | C | 1,852 | 66 | /*
* filename: store_graphs.c
* this code is to save graphs
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Wed, 20 Jul 2022 01:48:14 +0900
*/
#include "mtsim.h"
void store_graphs(void) {
char filefin[40];
sprintf (filefin, "xwd -name \'fin\' -o... |
29dff06105ed77ce09b1a286d4bcca37598a4078b0355f2081e85524068d3a44 | C | 1,854 | 55 | #include "cs.h"
/* print a sparse matrix; use %g for integers to avoid differences with CS_INT */
/* Disabled for igraph as it prints to stdio */
#if 0
CS_INT cs_print (const cs *A, CS_INT brief)
{
CS_INT p, j, m, n, nzmax, nz, *Ap, *Ai ;
CS_ENTRY *Ax ;
if (!A) { printf ("(null)\n") ; return (0) ; }
m ... |
5f2969866d2cc2306934d157508dba88ae3069ddbe986cf1fc92a664718b63d9 | C | 1,858 | 120 | /************************* tajima.c *************************************************************
This program calculates Tajima's D when number of sequences, number of segregating sites,
and average pairwise differences (pi) are known. It also reports all the coefficients for Tajima's
D (a1, a2, b1, b2, c1, c2... |
7ac5dfe8d960e71f7c56d5ed485ad988c3d1c7ba15bc452ec76a068fd6808a62 | C | 1,865 | 90 | #include "f2c.h"
#include "fio.h"
#ifdef __cplusplus
extern "C" {
#endif
extern uiolen f__reclen;
OFF_T f__recloc;
int
#ifdef KR_headers
c_sue(a) cilist *a;
#else
c_sue(cilist *a)
#endif
{
f__external=f__sequential=1;
f__formatted=0;
f__curunit = &f__units[a->ciunit];
if(a->ciunit >= MXUNIT || a->ciunit < 0)
er... |
ecfc4bcf44eef2274612e71afbd3cf5b03e716996f4ebdcc7b10e7b985ea9267 | C | 1,881 | 55 | /*
igraph library.
Copyright (C) 2010-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... |
e093b15c6c0b3d167fc14acda6f880c7d8babe11d49858e6eabf79678cfdd064 | C | 1,896 | 50 | /*
igraph library.
Copyright (C) 2017-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... |
c00dfcfc379c2590125c3eba28a808b2a15c4a86192d5dec47dc40445f45876a | C | 1,897 | 54 |
#include <igraph.h>
#include "test_utilities.h"
#define BIGRAPHICAL_PRINT_DESTROY(deg1, deg2) \
igraph_is_bigraphical(&(deg1), &(deg2), IGRAPH_SIMPLE_SW, &simple); \
igraph_is_bigraphical(&(deg1), &(deg2), IGRAPH_MULTI_SW, &multi); \
print_vector_int(&(deg1)); \
print_vector_int(&(deg2)); \
print... |
fedb94e455e79495e1776c4860666d4dd093f2c7acb8682900e53ed6048e4785 | C | 1,900 | 70 | /*
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... |
7aea2e7b2573cf255e2255fd7498b097b0f58c5ce4fcc333c002920464f20639 | C | 1,902 | 54 | /*
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... |
1cc4a73baa6523b26eeda4c2ec412600cd4d938f6f15ff09b563a6ea1b7d18c0 | C | 1,904 | 61 | /*
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 ... |
ea62f0cdac068e0fcd0be740535dd1dfb156af34a35d2fbd68a9affbca3cf20a | C | 1,905 | 66 | /* kolmogorov.c
*
* Copyright (C) 2010-2011 Tamas Nepusz
*
* 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 version.
*
* ... |
aa48ff9a099e8e8f40069ba436ad00b8ab244f0762fc30654a0bd8c96dd645a3 | C | 1,912 | 54 | /*
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... |
c12ad8cd8363cf8da3c6d6f49097d588e9b20a0ddae4b2bce752ec49b5d66304 | C | 1,912 | 67 | /*
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... |
367f59c253b6c8bc055e52ff32e819aca853c78b1ff8108e85e80b11a602f0f4 | C | 1,916 | 69 | #include <stdlib.h>
#include "libqhull_r.h"
qhT *qh_alloc_qh(FILE *errfile) {
qhT *qh = (qhT*) qh_malloc(sizeof(qhT));
QHULL_LIB_CHECK
if (qh) qh_zero(qh, errfile);
return qh;
}
/* Free the qhT pointer.
Note: qh_freeqhull and qh_memfreeshort should be called before calling qh_free_qh. */
void qh_free_qh(q... |
a23023d35a3186a7e365665f2ccadb88b5fa7af597e70dc9f3db4aa10cf344b0 | C | 1,916 | 57 | /* igraph library.
Copyright (C) 2010-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... |
e0631f50226b933327d13c4dc10be3e9e0b79afed9c0c40bf15ad84ada4b00e2 | C | 1,919 | 67 | /*
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... |
de60b5869b1181697be8e8c923c824aaf6267fad7a488c92cf9f2adfadd9801b | C | 1,926 | 62 | /*
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 ... |
dd8012e3bfe4e74d7e3afc2c022ef8c2b57118124376c0e9e4667b156cc99a79 | C | 1,927 | 60 | /*
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... |
e3d363ee6d7fbeb243e44352a2a5927e3a92c53fb0c7e260f9877e29e693526a | C | 1,938 | 71 | /*
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 ver... |
22547b496ddc5fa714932347ce9fe2141d758b2b37f1726ca68c15e4b8b9006f | C | 1,939 | 68 | /*
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... |
f7d6c954c4a44316e804c623ca4ea00bd7634b98bb0c1bdde8e15adbad82aa3b | C | 1,960 | 53 | /*
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... |
122067b7973ad006f129f2425b63bf44f2361c407c30b8e8b032dae59a152d9d | C | 1,962 | 65 | /*
igraph library.
Copyright (C) 2010-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... |
748366f775a1e3e05ddf0a210544ead2a43a1591ee14f564f87a42e6ab7f028b | C | 1,963 | 63 | /*
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... |
4f0f5ea99f38c93de7f8d76b092d953b6ac87ad51ead4714fade8570d2430582 | C | 1,964 | 61 | /*
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... |
915e1f92c66b0c7bc06bd27f2812ba1ac1d77f096a35993e530f055bee2a949e | C | 1,975 | 71 | /*
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... |
4adaa8651dac67f8223223978d5943c410f843b880b45541e11d9a5836398258 | C | 1,976 | 41 | #include <igraph.h>
#include <stdio.h>
int main(void){
igraph_t g1, g2, g3;
igraph_int_t nodes = 500, A = 0, power = 1, m = 1;
igraph_real_t assortativity;
/* Initialize the library. */
igraph_setup();
igraph_rng_seed(igraph_rng_default(), 42);
printf("Demonstration of difference in assor... |
eecfa8a624fc55e07368ed85dc685767ebc40b33d211d19ceca78cce95327db6 | C | 1,976 | 73 | /*
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 ... |
5500f34f6c84133fc9eeaf4d7e39c53ab65028f16296d4f90ecb6474e8c43cef | C | 1,979 | 64 | /*
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... |
42fd22b3f5d2a40f6530172e4e698a2b4e7000f47355151c36cfd60cc3ce8e5e | C | 1,983 | 72 | /*
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 ... |
0f3f6a800d54d5ffacb2d3c1e42578e5449a6d3c07ce4735f590ae5b2a32732f | C | 1,985 | 64 | /* ========================================================================= */
/* === AMD_control ========================================================= */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... |
9b2c3f73d1ed1808465cd207dd1e2da1c342cc14f331e5896bdcf2187bc49b56 | C | 1,986 | 75 | /*
igraph library.
Copyright (C) 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 ver... |
2d5400971f1e27804472bcfe7bd630df6fac951d9fd8ac900f0fe2f921b4cab8 | C | 1,990 | 65 | /* 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... |
0c6c9b1638d19716b896bfd59352d3cc60292f021ccd8df53fe983f43e103438 | C | 1,995 | 74 | /*
igraph library.
Copyright (C) 2021-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... |
873af952ed3701adc3c248cd2e80fcce9cf1c3da2fa1e231bd8843578823bf8b | C | 1,997 | 59 | /*
* PCG Random Number Generation for C.
*
* Copyright 2014-2019 Melissa O'Neill <oneill@pcg-random.org>,
* and the PCG Project contributors.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
* Licensed under the Apache License, Version 2.0 (provided in
* LICENSE-APACHE.txt and at http://w... |
01d8165f7458f651c97cad192324cf0996a5900d6d807ffcf71cf33e12da3470 | C | 2,001 | 61 | /*
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... |
280242e83d2cbe294a8dc138c31998955510fefac31a38791fecbf00f353e92f | C | 2,003 | 62 | /* round2n.c (round floating-point number to nearest power of two) */
/***********************************************************************
* 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 s... |
9d468ac59158390f2ae9bf233f72bea57708df94ad4b6d9010e0a7e6298c8331 | C | 2,011 | 56 | /*
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... |
b83ca267e35ba59ffcc0939bdc25532c0c832559385aa833dc0babff01919f70 | C | 2,015 | 66 | /*
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... |
cd6e4f246ace666516b7531d9aea8e5441479078a2188f738fedca911dc677b8 | C | 2,017 | 65 | /*
igraph library.
Copyright (C) 2010-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... |
2bf79e459f754384bd23ec73d9f74504b1a252619df333b99a228928ff25a59f | C | 2,029 | 73 | /*
* PCG Random Number Generation for C.
*
* Copyright 2014-2019 Melissa O'Neill <oneill@pcg-random.org>,
* and the PCG Project contributors.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
* Licensed under the Apache License, Version 2.0 (provided in
* LICENSE-APACHE.txt and at http://w... |
7ddba0706d6044ab909441001dcf2a6b08c4e6e18f0472d17bad71e74ca58372 | C | 2,029 | 61 | /*
* PCG Random Number Generation for C.
*
* Copyright 2014-2019 Melissa O'Neill <oneill@pcg-random.org>,
* and the PCG Project contributors.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
*
* Licensed under the Apache License, Version 2.0 (provided in
* LICENSE-APACHE.txt and at http://w... |
c0a3af7f46a8c7ebcd39ef34c5d8aafb22b2fe9b4cf70e7128d638b8e4c2ba42 | C | 2,031 | 61 | /*
igraph library.
Copyright (C) 2005-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 later... |
f78d95fc4bf05a3a8880e174fc5dc894e29e0f00feae079a801a7381df9446a1 | C | 2,032 | 61 | /*
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... |
d31b1be1257662a87ee0c619f4c72178e5616ba9e4b972c87ccc8e3a5250a94a | C | 2,033 | 65 | /*
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 ... |
392690b8e01c4eb8cd96cd176f5e8a810cbf5e866cc34b32f7a83ea929dbff6c | C | 2,041 | 70 | /*
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 ... |
407e302265edec9d4af60c5f9ba34927127df5b37a6ebc0c524e4151cab60b38 | C | 2,051 | 68 | /*<html><pre> -<a href="qh-user_r.htm"
>-------------------------------</a><a name="TOP">-</a>
userprintf_r.c
user redefinable function -- qh_fprintf
see README.txt see COPYING.txt for copyright information.
If you recompile and load this file, then userprintf_r.o will not be ... |
8da9a5167dd3b14c4267d0229ec02767ec49680c184ff5fe5239ccfc9eaa8cfb | C | 2,060 | 71 | /*
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... |
4d64b1ba233fc8cf4c7ea25786d42e87ef3fed65731390899f465146671bbc8e | C | 2,064 | 63 | /*
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 ver... |
256514d8b8decadce8ebd484ebfb3649460908d0cf4148679d5f88c5846cf804 | C | 2,084 | 67 | /*
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... |
88b59c892bf198007d2be708cc8539fb64f1ef359a9abf52269af30888378b56 | C | 2,086 | 61 | /*
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 ... |
8465730c796473be961a0c3be3158f94a0b096b58a7354275c79f9c965fc6629 | C | 2,088 | 64 | /*
igraph library.
Copyright (C) 2009-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... |
ac188d79bd67ff0a1a25215b93d03641778b5885764b84b85a276471fc510595 | C | 2,095 | 87 | /* Last update: 08-May-2013 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "glpk.h"
#include "proxy.h"
/**********************************************************************/
int main(int argc, char **argv)
/**********************************************************************/
{
glp_pr... |
15e9ae86c43f1a216cef434370b9963492be1c7c40c9bbaa0b86b3cd968d2344 | C | 2,096 | 66 | /* error.c
*
* Copyright (C) 2010-2011 Tamas Nepusz
*
* 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 version.
*
* This ... |
a18a587580ef350f97d99d700e492d6583f23ba5ba6801dfd8dacfa0b5113f1e | C | 2,098 | 59 | /*
igraph library.
Copyright (C) 2007-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... |
d309a503ef3c061090c2c6083f7ab3d7b95a0c1e2e333c4b9c84e968a6237afb | C | 2,098 | 62 | /*
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... |
3c7c8b665b3fabfea450e2f9aee25ca5acaa44a79ecbf8b4b4ddcc4d29333b34 | C | 2,104 | 71 | /* rng1.c (pseudo-random number generator) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2003 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistr... |
e605e356b95e818ef366ce70982494723e91540fe09e744275d0f7082d9dcb0d | C | 2,106 | 53 | #include <igraph.h>
int main(void) {
igraph_t graph;
igraph_vector_int_t result;
igraph_vector_t result_real;
igraph_int_t edges_array[] = {
0,1, 0,2, 0,3, 0,4, 0,5, 0,6, 0,7, 0,8,
0,10, 0,11, 0,12, 0,13, 0,17, 0,19, 0,21, 0,31,
1, 2, 1, 3, 1, 7, 1,13, 1,17, 1,19, 1,21, 1,30,
... |
e94aa37354ec2b9a434bd215b9c216945679ef28735adfd190df7a9be002c783 | C | 2,109 | 69 | /*
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... |
60cca42ecafcbc50d19963034c46cafc76b2d5ba4a2d971fa3ef2cde4d835bb2 | C | 2,110 | 66 | /*
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 ver... |
a6aa2072685767e5bb8a88e869af4e63d113842ab90b8f5820fd7951728b08bb | C | 2,110 | 68 | /*
igraph library.
Copyright (C) 2011-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... |
2019e0aec67418c95bc2c6dea183d0aa6efab30e06c565e8da152cd4886ec256 | C | 2,114 | 67 | /*
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 ... |
eabeb0f175c85dc14b32953a8699c8c3c7690e9494f66c21b844cbfba38d2add | C | 2,118 | 64 | /*
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... |
005120d48f96ce765b015ea37789f54c744055d35b8cfb3061caf3003a3f6de2 | C | 2,120 | 71 | /*
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... |
573b8324e7c97030e70f0754f588994dbb2ee19d99de0c27f1c035305386bc92 | C | 2,123 | 70 | /*
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... |
5edbdab58eae09bf22cf865b952b9a26558dca861f9370ebce8765fa01de6669 | C | 2,124 | 67 | /*
igraph library.
Copyright (C) 2010-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... |
d9adf1876c9a5b138b8eefa8dfb1a452f9455fbda7f01eced94e9af81c51235e | C | 2,126 | 63 | /*
igraph library.
Copyright (C) 2006-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... |
d58680098931d696dfc34629364f4f561ab84bf4223f87ff2485547ae98990b4 | C | 2,130 | 64 | /*
igraph library.
Copyright (C) 2010-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... |
49fbe219203a199a0f68ff96f827bcf23bf865f38b01c23fa574048df2a882bc | C | 2,137 | 56 | /* 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 option... |
56017674903d4d1c87bcee8bb5da89bf185d4cd22d6d9af524d5317e1f16f2af | C | 2,144 | 70 | /*
igraph library.
Copyright (C) 2006-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... |
0359daa6905931e82d8d836e63124f74b1e624a1f8c2079763a13a44cad032f6 | C | 2,153 | 85 | /*
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... |
cf3b35b245bec4c2f319ed0a79188dde715ef63293a7dde22b8d1ee3941fd7cb | C | 2,153 | 57 | /*
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... |
075024f21ff09df4c3a6a9621b7e3e6757d68122179ebd5b0befe245ae95ab39 | C | 2,155 | 56 | /*
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... |
3bb0ef49cb441ef16a37fe1737dbad7dccaeeac9c86da196636295e1334ccd1f | C | 2,157 | 74 | /*
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... |
6c76dd98c6bd5ea368f5ccb3117450b86aae6b3229f7040e345f20c588bea495 | C | 2,157 | 63 | /*
igraph library.
Copyright (C) 2006-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... |
f378d4931863c91c19bc06962fca67d13106fe6a5ceea691a54957a1fae456c0 | C | 2,164 | 62 | /*
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... |
7c12f19fd885ec498591cedc3f8c9bc3ee3cba5cb56aa0d7dbade62bbc6c5d1c | C | 2,169 | 68 | /*
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... |
2744a55df8d4cca3bf2499831f970cb2ee3ba83ea838f4564396f9a0da2c48b8 | C | 2,172 | 68 | /* 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... |
d381b5b7e22b00569c5a1e48939f6d14bb4b6482d510c75ad74875506d94edf5 | C | 2,179 | 59 | /*
igraph library.
Copyright (C) 2008-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... |
4e1c0a03f489aa9f0383934122ad48bd657994867656458d0f6c48197c0c539e | C | 2,182 | 60 | /*
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... |
b31c43f3b305f32afc93bcf094b7ce98db5869ba01a43602ef88c196b3e32835 | C | 2,197 | 67 | /*
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... |
546329bb5517b48da289c5391ba1f286d2984b927e21bb79ce75b185e62002ec | C | 2,202 | 63 | /*
igraph library.
Copyright (C) 2005-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 ... |
3cbf214aa03a82c71fedc93d6724fd202abf17c0a0c90cf938afa3a582087474 | C | 2,204 | 66 | /*
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 ... |
05c2841c2bd8106d83b870c61d82192cf4eac458ca5171300eeab318c6914e76 | C | 2,219 | 70 | /*
igraph library.
Copyright (C) 2010-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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.