sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
78d0c711eb127fd1721bf8972fb1674e105b28a46bb52678665e1e9b7024abfa | C | 1,431 | 46 | /*
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... |
dd0916223a0f613e43341b0712f166306d1c69008eaa7cf782deb8e18a9db14c | C | 1,436 | 49 | /*
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... |
67585949a7ff1321554ade1f44401c7bccc6d95cf0d4a80bfeb8d4d0f9789d12 | C | 1,443 | 45 | /*
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... |
0ba05d67b29a8bbdaebe126b9c79477400ce02c554cab967d4244ca04de9a900 | C | 1,446 | 47 | /*
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... |
d251183ce835e8724586c899a02865724d8abedcca5ed893fc5a56363aca1160 | C | 1,463 | 40 | /*
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 ... |
e1473b1945ad55f5456f6a6419ff0d1bfb446ed73a4498204774736c74e470e3 | C | 1,463 | 43 | /*
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... |
3ead1c63f1af69002f98df8100ef70e95da4ad421ecc6336802980b31630fff2 | C | 1,468 | 87 | /* Unless compiled with -DNO_OVERWRITE, this variant of s_cat allows the
* target of a concatenation to appear on its right-hand side (contrary
* to the Fortran 77 Standard, but in accordance with Fortran 90).
*/
#include "f2c.h"
#ifndef NO_OVERWRITE
#include "stdio.h"
#undef abs
#ifdef KR_headers
extern char *F77... |
c267e5796285a93ad6950b6ab0578c8a824d16a9c7aeeadc14101eb81e67cd11 | C | 1,471 | 52 | /*
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... |
4997da2934c06ccc5cd4989ca4afd56bea5a92237d93891b0fc999879f87752b | C | 1,472 | 50 | /*
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... |
b75b1506fcba1357394af40dd94e4535749d4351c3072cfe2aef96fbb5339bbc | C | 1,477 | 47 | /*
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... |
0e7b5301ee70bde1938f14ab248b0d001343e80a11e823f7ee9a75803f06a0a0 | C | 1,479 | 53 |
#include <igraph.h>
#include <math.h>
int main(void) {
igraph_t graph;
igraph_vector_t x, y;
igraph_vector_t weights;
igraph_eit_t eit;
igraph_real_t avg_dist;
/* Initialize the library. */
igraph_setup();
/* Set random seed for reproducible results */
igraph_rng_seed(igraph_rng... |
d728d7f4cff230908c4b153f4ab57bb63a62d09737f96e3ff6f9ee7a3721d25f | C | 1,481 | 54 | /*
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... |
fb4e0ab8e71db54fcea1a3ac57f3aa0dff097cd6387d7558c90b2681c301a1e7 | C | 1,484 | 49 | /*
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... |
0a86dc4552736c3e14b034d900c4aead219b5a72a1f3fff5e676825ce6dd3c62 | C | 1,485 | 46 | /*
igraph library.
Copyright (C) 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 versi... |
af57deb2f03b2c6390b846d03400427c77efacda8f6f00755cb9402c99e581d7 | C | 1,492 | 91 | /* read sequential formatted external */
#include "f2c.h"
#include "fio.h"
#include "fmt.h"
#ifdef __cplusplus
extern "C" {
#endif
int
xrd_SL(Void)
{ int ch;
if(!f__curunit->uend)
while((ch=getc(f__cf))!='\n')
if (ch == EOF) {
f__curunit->uend = 1;
break;
}
f__cursor=f__recpos=0;
return(1);
}
in... |
43989e3de8e695ba92407a34d12ea277b162f47082429545015b55b9edb38880 | C | 1,497 | 49 |
/*
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... |
955c58aa71dc55c675135ae34d93de41d3b7dd64f57c211fd094bbe9ce8659c7 | C | 1,498 | 50 |
#include <igraph.h>
#include <stdlib.h>
int main(void) {
igraph_t ring, g, *component;
igraph_graph_list_t complist;
igraph_int_t i;
/* Initialize the library. */
igraph_setup();
igraph_graph_list_init(&complist, 0);
/* A ring, a single component */
igraph_ring(&ring, 10, IGRAPH_UN... |
edf1a7ac9b4a6a207de4955ed9ee6e0bd89603748bf9f9c350cc2b8c33e3c6a5 | C | 1,500 | 48 | /*
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... |
c2e272175d2578118a4433331af18e2f348120ddfad86102a7310d191ff5f8ab | C | 1,502 | 52 | /*
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... |
284d384e8a80e952398ad78fc113ad9ae7940ebd2897a1f51138157a0e236c8c | C | 1,503 | 40 | /* 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... |
b99beff02379a46ce297b8b806ce6da9d5c9eb7ee71e58b8ae89d3a18c02b269 | C | 1,503 | 46 | /*
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... |
95e754397c46431b7b4a160c34cb5ad99bef4dc4b64173330ef90c1fa7459cdb | C | 1,505 | 52 | /*
igraph library.
Copyright (C) 2011-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 ... |
1ea2167458fe6bd1ee46cf023259d13d6170903264cfcab052782556d1468b87 | C | 1,518 | 49 | /*
igraph library.
Copyright (C) 2020 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... |
e4acdec5f3e34f0d725e3e7601fbd23f8aebeb68200f8560bd25c419ea99a66e | C | 1,526 | 49 | /*
igraph library.
Copyright (C) 2015-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... |
4393815596982b1711d77a945efebfd213647c3983259a30670b59e40c3ed03d | C | 1,529 | 50 | /*
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... |
02650eaa947560a21d6ef9889421693478869b822c4de7a45cfde1cef1cdf5a2 | C | 1,531 | 69 | /* *********************** Probability of s segregating sites (no recombination) *********
The subroutine dist_ss() calculates the probabilities of number of segregating sites, using
a simple recursion (Hudson, RR in Oxford Surveys in Evol. Biol. V.7).
************************************************************... |
8b9e9b96ebcf677b3294f36d0150082bef04a3ca220ed162e2718ce858102f29 | C | 1,531 | 45 | #include <igraph.h>
int main(void) {
igraph_t graph;
igraph_vector_int_t dimvector;
igraph_vector_int_t edges;
igraph_vector_bool_t periodic;
igraph_real_t avg_path_len;
/* Initialize the library. */
igraph_setup();
igraph_vector_int_init(&dimvector, 2);
VECTOR(dimvector)[0] = 30;... |
5f169064aa4f61a5c1b10dc60d1e6397ab1c4dd2a1709c48ea962863471efd61 | C | 1,538 | 56 | #include <stdio.h>
/*
* filename: mnewt.c
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 03:17:37 +0900
*/
#include "mtsim.h"
// Newton-Raphson Method for Nonlinear Systems of Equations (ref) Press et al. "Numerical Recipes in C"*/... |
53ff01595ad48075f6cdd2a3553b4bedb2df3c6c4b4486b1979dfe353f70e96c | C | 1,541 | 47 | /*
igraph library.
Copyright (C) 2003-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... |
a3f9660d2e9dc90362a7f3df9eebcbf81f19741f60ee919d6c415669dbed63f4 | C | 1,541 | 55 | /*
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... |
a72884dfba68f0fbac9d1ed69585d3dffd59767e8ed1e02dc1f0195b8977ad4b | C | 1,549 | 52 | /*
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... |
f885101c274cc59c61e893aef304b2f5c7b5bff764aaaf6ac5b1a2d31f7c4785 | C | 1,549 | 54 | /*
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 ... |
fb47a3b17a7e04d671d0e918a53f2bb38b97161b695eede07df62214d5e4fa46 | C | 1,549 | 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... |
42a594e58d0beac5525de7cc8bd571dc386e365e45d0d66c32e5d2fd1974c773 | C | 1,551 | 56 | /* vim:set ts=4 sts=4 sw=4 et: */
/*
igraph library.
Copyright (C) 2011-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... |
1c0037bc8c1a45e72c2bba95cb3de2e513c69a28571bb2e5e62ab53c9d84cc4d | C | 1,567 | 53 | /*
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... |
d9bc1e418e3799be179b78b71b9936efef495b6dd243722d0fd07218ffc1a24e | C | 1,573 | 58 | /*
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 ... |
34eeb0b71e20d5480fa20c2ac2e23534e848283d6f6f5d2bbfc7ecac761720ba | C | 1,580 | 48 | /*
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... |
fc85434490df7b88aa33bbf9e44da7e949f2e75d8514305f236edaa5b8e0c532 | C | 1,582 | 45 | /*
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 ... |
c16562fd174ce6f316f53456be29b37d69a8233e8f6b8029c9b3bc6eefc7e05a | C | 1,587 | 61 | /*
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... |
e705e75ac9f44a09487315eeafef1ccdbaa0b9d3388cf4e8b990b226cf44a14f | C | 1,600 | 63 | /*
igraph library.
Copyright (C) 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 versi... |
409d8a37256a7cb54d00d2b2568deda67172a015093809efe16c5dea078c53d6 | C | 1,608 | 50 | /*
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... |
b1f81a2d0a924f14c78b3880bddaeacaf352bd3c8d28c55f9e5a19c343ddf6af | C | 1,611 | 53 | /*
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 ... |
93836336af35f07f334e4a6a93769c6dedba31afa0b73f9c0f43734c6d71a350 | C | 1,612 | 49 | /*
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 ... |
7aafd6eace728cc572241703c75dd50089fde2d34e2f8021229cde6112c2e220 | C | 1,614 | 62 | /*
igraph library.
Copyright (C) 2021-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... |
3808f6b9a95b0f6b5dbda46ce89cb44cd351a4d78781824b78d8ace25147f678 | C | 1,619 | 56 | /*
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... |
b0b61e26906d6ae1fb56b9fc559cae9cacafc35bbebfd211348ccc1a3912b17b | C | 1,619 | 75 | #include "f2c.h"
#include "fio.h"
#ifdef __cplusplus
extern "C" {
#endif
uiolen f__reclen;
int
#ifdef KR_headers
do_us(number,ptr,len) ftnint *number; char *ptr; ftnlen len;
#else
do_us(ftnint *number, char *ptr, ftnlen len)
#endif
{
if(f__reading)
{
f__recpos += (int)(*number * len);
if(f__recpos>f__reclen)
... |
5be4f733c8e8eb5cd783af64357a312ce6445cb97e0fb9af7fb08442f8d5e526 | C | 1,620 | 44 |
#include <igraph.h>
#include <stdio.h>
int main(void) {
igraph_t graph;
igraph_vector_int_list_t cliques;
igraph_int_t i, n;
/* Initialize the library. */
igraph_setup();
/* Set a random seed to make the program deterministic */
igraph_rng_seed(igraph_rng_default(), 31415);
/* Creat... |
9d7b52dcf542b149c83a181f35880d3c4d30a0bfcf8283dadf1019beac9e2822 | C | 1,620 | 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... |
cb6ba62c7ef2f10fac4a988b43d3080c9882748e6f476871ab339e3eed7e944f | C | 1,624 | 77 | #include "f2c.h"
#include "fio.h"
#ifdef __cplusplus
extern "C" {
#endif
int
#ifdef KR_headers
c_due(a) cilist *a;
#else
c_due(cilist *a)
#endif
{
if(!f__init) f_init();
f__sequential=f__formatted=f__recpos=0;
f__external=1;
f__curunit = &f__units[a->ciunit];
if(a->ciunit>=MXUNIT || a->ciunit<0)
err(a->cierr,1... |
0978abd46232433b5e51b2bcc8193ba489fb58cbe4ab4229e55a825ccbdb6806 | C | 1,625 | 53 | /*
igraph library.
Copyright (C) 2006-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 y... |
04544308446ab5366338f75413b83bfe37b4bb259bad7318ff40d098e4392556 | C | 1,631 | 51 | /*
igraph library.
Copyright (C) 2006-2020 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... |
04172e46c708f3a35f1a1bcbe07385716dbe04deec29e195d41e354610ac821b | C | 1,635 | 52 | /*
igraph library.
Copyright (C) 2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard st, Cambridge MA, USA 02139
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... |
6b8e994cf9bb2ce783cd40fc1ea3063582533371bbc9cd632556e1723f627c69 | C | 1,645 | 50 | /*
igraph library.
Copyright (C) 2006-2020 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... |
3a6f9031f7d0e091b2dc81565fd25fa590c58b33aec502e38d7a2e68e33b2bd6 | C | 1,659 | 57 | /*
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... |
cfad89d25dcb9b8d519d74149d34e1ac7ebf8815481e496749ec239914c926ab | C | 1,661 | 60 | /*
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 ... |
712b7e36d5fcc4ff118e3cf0a23d8f453cb2cdde7c44fc5b1d5fef999c760ea6 | C | 1,665 | 56 | /*
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 ... |
bf3fd14d80696a836ea88a5ba376785cf545abfa0a4aa00461596138ec6ff3fc | C | 1,666 | 56 | /*
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... |
32074d33252102f30e4414e66989a767f53249ffcebf9f9fe325ba42f3153e52 | C | 1,669 | 54 | /*
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... |
e81631a07d7acb15a01fb0e59784aa6cb597bb532bfcda30a77bcc6effa4d7a6 | C | 1,673 | 57 | /*
igraph library.
Copyright (C) 2020-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... |
2ddfdf277e89279209ca1bd1334f70cf9fb1507d8d3fc269890d5a86afb2d34f | C | 1,676 | 55 | /*
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... |
cca0e019c59f3c48f541fe5611ce1f407bd1c08210ed92d9c9a3857949759533 | C | 1,677 | 54 | /*
igraph library.
Copyright (C) 2007-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... |
63c3d4d866fec9bb499ba4d0f8339a353bc0fa48d9458d56600dd65a6d8d1085 | C | 1,678 | 46 | #include <igraph.h>
#include <stdio.h>
int main(void) {
igraph_int_t nodes = 120, types = 4;
igraph_matrix_t pref_matrix;
/* Initialize the library. */
igraph_setup();
igraph_matrix_init(&pref_matrix, types, types);
igraph_rng_seed(igraph_rng_default(), 42);
printf("Randomly generated gr... |
831e7dec9840143aff55e15d429d3d9b7cca28fdda53bec6ed38fe5835d159dc | C | 1,680 | 57 | /*
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... |
a44ec304da4783a33c589de5f974f7e4b4d20ec4cc1f49ecb5906a74f1f061ca | C | 1,683 | 52 |
#include <igraph.h>
#include <locale.h>
#include <stdio.h>
#include <string.h>
int main(void) {
const char *filename = "weighted.gml";
igraph_t graph;
igraph_safelocale_t loc;
/* Initialize the library. */
igraph_setup();
/* Attempt to set a locale that uses a decimal comma. Locale names
... |
994eb47033119e2cc1b3fdce8f73dd5e2190abde018df88d41e7541bb0b7b664 | C | 1,687 | 55 |
#include <igraph.h>
/* This is a callback function suitable for use with igraph_motifs_randesu_callback().
* It prints each motif it is called with. */
igraph_error_t print_motif(const igraph_t *graph, const igraph_vector_int_t *vids,
igraph_int_t isoclass, void* extra) {
printf("Found ... |
1fb54b97b296b6ed92146e3b3544232b55a931046043a6badcbed32387f33cfd | C | 1,688 | 59 |
#include <igraph.h>
#include <stdio.h>
#include "test_utilities.h"
void sort_and_print_vector(igraph_vector_int_t *v) {
igraph_vector_int_sort(v);
print_vector_int(v);
}
int main(void) {
igraph_t graph;
igraph_vector_int_t bridges;
igraph_vector_int_init(&bridges, 0);
igraph_empty(&graph, ... |
121c2168727ab2caef5d4c180fca2e8ce9cfac93a11473e6d2f7372a2f30cd6c | C | 1,689 | 69 | /*
igraph library.
Copyright (C) 2007-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... |
e5a92315c01bb31a1a1c1f0d2672b04eb15ebcba6928ac99134b7d05999878eb | C | 1,690 | 58 | /* strspx.c (remove all spaces from string) */
/***********************************************************************
* 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 redist... |
637bcb321c1161e1f3c43b3665daaccca686a57568337ffb4f6c2cfcaa7f71f5 | C | 1,695 | 53 | /*<html><pre> -<a href="qh-user_r.htm"
>-------------------------------</a><a name="TOP">-</a>
userprintf_rbox_r.c
user redefinable function -- qh_fprintf_rbox
see README.txt see COPYING.txt for copyright information.
If you recompile and load this file, then userprintf_rb... |
9ba75106ae37217a4a0660d1532514e009423f594632548bf37112fb7d90b8d1 | C | 1,708 | 51 | /*
igraph library.
Copyright (C) 2009-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... |
8c3ab8c600fea1553630b21ceaade8e72752e584eb537b694396c539fc1504d7 | C | 1,718 | 63 | /*
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 ... |
428e24704a8ae8fce55f04b74dec6a7b92112cb4da3f83be9a08a54d22543b90 | C | 1,723 | 60 | /*
igraph library.
Copyright (C) 2022 The igraph development team
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 version 2 of th... |
d269603fa5b0009a40da7d3d74743dbffac54e8a17b7f90a9e643b636298dbd2 | C | 1,723 | 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... |
27776942df3a0d7267255b1a6ecd24ba6cf456a96d1999b78cc029c48160dd9a | C | 1,725 | 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... |
c1fb3a8fd0f4ec40c9cf26e62df67044901cb3bb9f17fdc3fc7b63613392b62a | C | 1,729 | 56 | /* 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... |
391c0ddb998876a232bf4296889238fa7c8b609319c1fa06cda8f71ab7593f76 | C | 1,735 | 53 | /* 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... |
56b1d18c2be7215f9b99a3dc061ddef64d3749f9c03c5cec7484e4922ab7019f | C | 1,735 | 52 | /*
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... |
6fae330eac6a889a0df5fc54ac8b82a2b9cae6c43253a6e1da64f6c9a219abca | C | 1,736 | 52 | /*
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... |
7fde626f55f130aafd407eeadd0cd3b6347dd1916bfa0d5ebee42730719586eb | C | 1,741 | 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... |
3ec2d50de5e596b35f977925a301476c0ea3ca6d6f1c57c5bb5d29ac88f746ce | C | 1,743 | 60 | /* strtrim.c (remove trailing spaces from string) */
/***********************************************************************
* 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 ... |
201d854f02faa3b80a52d62de97e677c3f14f20d58b1039c95c96e90c0b6b31c | C | 1,745 | 54 | /*
igraph library.
Copyright (C) 2013-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... |
cb22c7078358d2b1b19acb94bafe174037ff823c9df4e1ccad6b628543caad2b | C | 1,747 | 54 | /*
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... |
0fc94e4eb84249797a0a63da3b3e23c062808e1f24b5b701b6399eecdd70becd | C | 1,751 | 74 | /* stats.c : Calculates mean, standard deviation for a list of numbers.
Quantiles are also calculated if quantiles are specified by command
line arguments. For example, stats 0.05 0.5 0.95 <datafile
would output the mean, standard deviation (estimated from sample) and
estimates of the 0.5, 0.5 and 0.95th quan... |
eaa9d582ca1eff765562c791af9f42870ac09a1101e8579171b27bdc1b36cabc | C | 1,751 | 60 | /*
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... |
6d84356e35ddeae10a3a102dc41272192c357aa3f252a7ec9746cde903c237e5 | C | 1,752 | 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... |
01b7712ba3d26f0434fb97971b7c8f3c6217a3597055786ca099cefeb9cd15d0 | C | 1,754 | 76 | /*
* LU decomposition (ref) Press et al., "Numerical Recipes in C"
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:37:42 +0900
*/
#include "mtsim.h"
#define TINY 1.0e-20;
void ludcmp(double **a, int n, int *indx, double *d)
{
in... |
b0d11981c922ceab405bb1c95f1f6f24f6c9ebbfd13afa3a932bfbe27bda7486 | C | 1,757 | 49 | /*
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... |
d7c36ed6e55361aa99d145335cc92b976221b0a0c67ad9b815c2d848c3163e7c | C | 1,757 | 103 | #include "stdio.h"
#include "f2c.h"
#include "igraph_error.h"
#define PAUSESIG 15
#include "signal1.h"
#ifdef KR_headers
#define Void /* void */
#define Int /* int */
#else
#define Void void
#define Int int
#undef abs
#undef min
#undef max
#include "stdlib.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
e... |
c20acb39f030b41d47b06d58d269b67bdf42cf3313934f6d7d4a67021b3d3bad | C | 1,767 | 59 | /*
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... |
9ec81fa0a83129cc32270e444a2182968e21567145eb88708928a1d09634f76d | C | 1,768 | 66 | /*
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... |
34b0a48910f256c507241cab9a3312697e02feb9ab9409eb9cee806a2c4c2439 | C | 1,771 | 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... |
d47a487f00638f8be09b91b611634bd35c9be01a64973d4edf4e4f98bd5763af | C | 1,776 | 52 | /* options.c
*
* Copyright (C) 2012 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 pro... |
d48113c5148062d0c4c01e9ba0723f1c7eafb1739705c54be5e37fdec893893d | C | 1,776 | 50 | /*
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... |
b430317a3ccb29d3af8319cb6f0613e38f1a446ad3c96db59b9991275447810d | C | 1,785 | 109 | #include "f2c.h"
#include "fio.h"
#include "lio.h"
#include "fmt.h" /* for f__doend */
#ifdef __cplusplus
extern "C" {
#endif
extern flag f__lquit;
extern int f__lcount;
extern char *f__icptr;
extern char *f__icend;
extern icilist *f__svic;
extern int f__icnum, f__recpos;
static int i_getc(Void)
{
if(f__recpos >= f_... |
a82c308299ba211ce563d7a5725e1b2abba1627c95c04a9cf0a185049e1d1042 | C | 1,787 | 57 | /*
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... |
4a807444f1dbf0e81f474ea1af082975f588da31876c87cb598b3d6573b68910 | C | 1,790 | 54 | /*
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... |
50dd3a0b502c3ae6884ba522151a6d5f07a8b1039ec1e10a9d875ec8e4a16ff8 | C | 1,791 | 60 | /*
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... |
8bb807dab05562022b9850333616cccf9261e6f0092cd9238e63ed60286743ea | C | 1,794 | 45 | /*
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... |
03d3f1480a0123fd38d20d3675ea489d1fe352217fca90375de7d46bd4b5aeba | C | 1,795 | 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... |
bdf4ffbc36862563cd9bee2847f397d5a0641d59d77e8a78bfab6ace3c120081 | C | 1,809 | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.