sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
446268c2f0e56dd28e4b8a6f57653cf3e6db372b50145e008dcd814279611a6c | C | 2,229 | 75 | /*
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... |
8de660d3fda8ee814a71daf1de1be02febc8b5b2a333fbcd5f265e5f31a644dc | C | 2,231 | 66 | /*
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... |
194f03f2faf2f8bd4f0bf7e72dfa60ba5a09952ee3e1dd496588aad19509f9c9 | C | 2,243 | 79 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t graph;
igraph_bool_t bipartite, acyclic, has_loop;
igraph_vector_bool_t types;
igraph_vector_bool_init(&types, 5);
/* Null graph */
igraph_empty(&graph, 0, IGRAPH_UNDIRECTED);
igraph_is_bipartite(&graph, &biparti... |
15ec6e08c56c6c961c0f3134086eefd3920697dc48413fc03c31820de234d870 | C | 2,247 | 55 | /*
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... |
35bf453276f4d086f147f558abc0be2abb3551addf452eaf878c16ef6c08921f | C | 2,248 | 52 | /* tests.c - some tests for functions in scythe */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../scythe.h"
#define TEST_INIT int iii, ppp=0, passed=0, failed=0, checked=0;
#define TEST(test, name) if (!(test)) { \
fprintf(stderr, "FAILED TEST '%s'\n", name); \
... |
f1ce87f54daa81946bd54200b9d481b30df6948e5079dc38a485f91b81b17792 | C | 2,249 | 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... |
ddb6be2839f932429e8d00516ca3081c65c0029c1337bcf3c3e63c16fc79189f | C | 2,258 | 72 |
#include <igraph.h>
#include <time.h>
#include "test_utilities.h"
static clock_t start;
/* Wait for at least a second before attempting interruption */
igraph_bool_t interruption_handler(void) {
if ( ((double) (clock() - start)) / CLOCKS_PER_SEC > 1.0 ) {
IGRAPH_FINALLY_FREE();
return true;
... |
ebf9cfd817d3d2bd8c0bd9e6f14f089aa16d4d43f640e912c890720b8b684799 | C | 2,258 | 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... |
ddef5cd38489e1f3ca105cf1c847948c678b5c2246de110a337542ada6168928 | C | 2,259 | 64 | /*
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... |
80e1dbb882a1e5905527ad2e857db8ee006a32752657502befe2c64457991912 | C | 2,268 | 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... |
ca83fe4caaa43d79e8d19d4306f753b0db28572ed06ebfa7c87a0f10381eda60 | C | 2,277 | 64 | /*
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... |
95a610f013d331d5d8a33cec384586a6d85c90b5c443f31a948c0e12c83d9bd9 | C | 2,285 | 67 | /*
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... |
f49ff40150546b3698877c4fce11ab7a88b902dceded44f89faf9e97606ddc8d | C | 2,286 | 81 | /*
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... |
ad68c053d462ad49b208325c8ec3ac217783e76c8355eba1e77fdf13fd9c11a9 | C | 2,291 | 70 | /* igraph library.
Copyright (C) 2007-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... |
2d7b728c0b4dc6f068d61ac8f4205ef90550faa4e2e3398eefdae77e03cd4228 | C | 2,298 | 66 | /*
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... |
e9c6b1cfae22fe1596544af11fc07c83d248799ba3c0b5f38cb2ac3a7b35db7f | C | 2,302 | 78 | /*
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... |
9e7272e2ff872f4fe03263266fb7374c83276e4761f3225989e1e0b1e87f24a3 | C | 2,309 | 73 | /*
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 ... |
ec37007c5be2ba945688ec9efbc625666cfae9d9bbcb59813a7a85e97bf4b0dd | C | 2,309 | 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... |
527d4e1104a563a66b291c1c52433f72849925e584f478eb007385d161da71e1 | C | 2,311 | 76 | /*
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... |
fef41f62ec0d0324fba83ed0d362fdccdb826a69624a8d9722e10524ce7437dc | C | 2,318 | 75 | /*
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... |
954c92e95e1aeea6f40dc0791367c3973b4eab3d1f854c808963a0c1f7d28bfb | C | 2,320 | 70 | /* 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... |
c4d10747b006878277652c682d50952057ac6e2a35bfd110ce5bfda07db9e234 | C | 2,324 | 76 | /* ckasn.c (check correctness of assignment problem data) */
/***********************************************************************
* 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 softw... |
1188b85f755c98f7d79883c37879333d2441dd5196dabeb0a979f43037d1a30b | C | 2,325 | 93 | /*
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... |
25fa0c676c790b3d9b85bae28b63a37706bb05e17f18e4148fd6a2fe2f7e56e2 | C | 2,335 | 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... |
c5972ca0885e3cdd245f519901ee33cc1bf221b10a5cdc93d64f1d773f7e5751 | C | 2,352 | 73 | /*
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... |
b1cbbc1d5b1ed35c9ab67df2d47b23711a219d76d48cbc8c6551e53e5a133d20 | C | 2,353 | 80 | /*
igraph library.
Copyright (C) 2005-2012 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... |
70e3d1ceb014db0b9629f5fb9080af01ebc94f8acff51f41c1a4be609fdb7298 | C | 2,360 | 61 | /*
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... |
bc366725a0c0712ac0adc2c5e439c709d514214539d1dc83d03b5d62e8bb9a12 | C | 2,365 | 68 | /*
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 ... |
22ecf472444bce425941cb72a1f74b2722d332399635629b09391ee3abbbf26e | C | 2,372 | 78 | /*
igraph library.
Copyright (C) 2019-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... |
ca78d810c4478b2bbf18b72dc670673b45f5d9269a6a5175d03c43cad47993ac | C | 2,375 | 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... |
0037932dfd778140945cd0dbb9204e0f830014bacb2ff4aac8a7b4fc60f94efc | C | 2,384 | 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... |
4fc25f08ce04268ddddfec0fc7f8a61276ab1685c0529b80259edb061a2d97f0 | C | 2,388 | 98 | /* stdc.c (replacements for standard non-thread-safe functions) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2017 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free soft... |
b707dabf293a3c8d58097405b0f59ff735cc955585b76b93b9e625804c5b4fd1 | C | 2,395 | 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... |
e712b977107bced5f6b8d3fa8f33a7f576606b2e3c248de1f6444fa0a65fe53b | C | 2,400 | 77 | /*
igraph library.
Copyright (C) 2013 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... |
decf8272b868305a9ff8ed4bd8ea0af30584fae5db872273d7bcc44fe50d6e77 | C | 2,409 | 75 | /*
igraph library.
Copyright (C) 2012 Tamas Nepusz <ntamas@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
(at your option) any later... |
1a2e536895aac3dba9a03169d8163dba2783df70a9969fa91a46e103914276d9 | C | 2,420 | 77 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t graph;
igraph_vector_int_t parents;
igraph_bool_t is_tree, is_forest;
igraph_vector_int_init_int(&parents, 5,
4, 4, 1, -2, 3);
printf("Out-tree:\n");
igraph_tree_from_parent_vector(&graph... |
b65be8aa5ef1d7aa4909267066a0bbb700bdfb05e3a422ccc1910e41517c7e0b | C | 2,427 | 83 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t g;
igraph_vector_int_t vertices, edges;
igraph_vector_int_init(&vertices, 0);
igraph_vector_int_init(&edges, 0);
printf("Null graph:\n");
igraph_empty(&g, 0, IGRAPH_UNDIRECTED);
igraph_find_cycle(&g, &vertices, &e... |
9410a4ca49a677256fb6376b6909512c567b7bde87c193e6d1732b39233242dc | C | 2,428 | 78 | /*
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... |
f05fc4a422805456825ffed301f067565837b4cedb3f0662a75975f890507866 | C | 2,428 | 72 | /*
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... |
f7412db418c454ccf0074d12c96464fa209e60dfae83dd7826cb788b15feb294 | C | 2,432 | 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 o... |
e4d3382235cc0d0209b778988010ec903552cfdb13e7caac0d0702166633e6c7 | C | 2,436 | 84 | /*
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... |
6e6ba57871b9239654830f8a1102e2c866cbcf83792c15e1e702c84bc93cd742 | C | 2,451 | 77 | /*
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... |
b8902da5060f4c72b74c7481d1a2a847ae8237cce729a25f9ecfb3429d07cb4b | C | 2,463 | 71 | /*
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... |
d4940df81ea3a0caef8887f2316ad68cbdb779a9aa5711cb2f0ba0ef34e6e927 | C | 2,463 | 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... |
b55417f48a74203823b428742b3a6fc35b7bbe336661232a926c09a4d0e64a6a | C | 2,464 | 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... |
e9d8d39dff3c9c8dc88f2070dbf448874d0cd6b367cf96d4e551297b30722564 | C | 2,474 | 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... |
1879ece74c9bd9d9fece6b49a09358237c25e83180062710fa918bb41fe6ec25 | C | 2,475 | 67 | /*
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... |
1073c84a7bdf3629149eb16eddb7ba486f31cba5442fba7365cf9d0ae6c96ed4 | C | 2,478 | 89 | /* cfg2.c (conflict graph) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2015-2016 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribute it an... |
3875551616b0441f35d823f292fa7bc687094b2a7e00d4d97d567955675de25b | C | 2,480 | 69 | /*
igraph library.
Copyright (C) 2008-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... |
b6af9b86fc955be941410c72f794c89ae50dc6edd861913a5a23b185c2a4fc54 | C | 2,493 | 87 | /*
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... |
3c7d36345219fefa112759cfcc221cfd70721a5b6600f063df9edd2a8da8846c | C | 2,495 | 70 | /* vim:set sw=4 ts=4 sts=4 et: */
/*
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... |
be882697f7b26e8c488e4a4178f1cafa41fc2edb28db0d64ae9c58399cc8b643 | C | 2,498 | 87 | /* SPDX-License-Identifier: BSD-3-Clause */
/* Copyright (c) 2020-2026, Christian Gaser. See LICENSE. */
/*
* Flat C API for the exact TFCE max-tree. See tfce_capi.h.
*
* Christian Gaser
*/
#include <stdlib.h>
#include <string.h>
#include "tfce_maxtree.h"
#include "tfce_batch.h"
#include "tfce_capi.h"
static voi... |
2ccc79a25babed8b30f76d583cd0f73e36ca5bcc33f8e41b185523440830a78a | C | 2,505 | 82 | /*
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... |
fe89caa2ced6cadd101c8a90d2675dbb748d0466bd2609009584b755821378a6 | C | 2,508 | 114 | /* bedFile utilities
/
/
/ Andrew Kern
*/
#include "stdlib.h"
#include "stdio.h"
#include "math.h"
#include "assert.h"
#include "bedFile.h"
struct bedFile *bedFile_new(){
struct bedFile *newBed;
newBed = malloc(sizeof(bedFile));
if(newBed == NULL){
fprintf(stderr,"didn't make bedFile malloc\n");
exit(1);
}
... |
e81a6047149796f7f85306b77e49a8190821542d4e4b118ef6f313ddc7140159 | C | 2,511 | 75 | /*
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... |
2665193d4ebe1945b73027e409521e3c441c75fe3573fcab52e5216262579806 | C | 2,515 | 86 | /* bfx.c (LP basis factorization driver, rational arithmetic) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2007-2014 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free s... |
801d7fc5b541c478cb9914fe6aa279988f2f9057dd9e85e078e12bc593ae21a9 | C | 2,524 | 71 | /*
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... |
2c621b4b4f00e99872a554f4c33a86adf24cfe5b6a02765a0dcdbec3d29da14e | C | 2,526 | 68 | /*
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... |
5eb484d3dea82e5b5dc9ae9e9a494a034b3ab0d4da95e4d0e9a25a6982673ab4 | C | 2,536 | 80 | /*
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... |
d2822f1e548204c5e040fe6342beac0a39442ebada26974a6f2dea4d80b0ef67 | C | 2,545 | 86 |
#include <igraph.h>
#include "test_utilities.h"
int main(void) {
igraph_t g;
igraph_vector_t result;
igraph_vector_t weights;
igraph_vector_init(&result, 0);
/* null graph */
igraph_empty(&g, 0, IGRAPH_UNDIRECTED);
igraph_vector_init(&weights, 0);
printf("Null graph:\n");
igrap... |
9b900983bac915da4304a145f2e9092fefc15c750abb40b84fec4a5eceaeed9f | C | 2,551 | 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... |
edb54dee92b1b77b55f6be84aa18f52fdfb0b1e1c87a6b01f96e664d1199f75a | C | 2,551 | 87 | /*
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... |
13a5d5a341c5d5f1c9a899aab5b8cb72628d0467b0a9fa4c8e9a61a7908ba256 | C | 2,552 | 70 | /*
* 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:00 +0900
*/
#include "mtsim.h"
void save_logs(int i, int... |
5993ec8325110e1db27b27454889d4d9e47ee2b302200e6d3c00d232798d7f5e | C | 2,559 | 76 | /*
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 ... |
d63137f167207a334b1f1b8188c05de88d684c24b83aa23d0e3b39992996b52d | C | 2,583 | 81 | /*
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... |
96a56bbac488ebee60e0cdca23ba301129767e2574a3c1b12dc25a3f39f7c8e4 | C | 2,584 | 72 | /*
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... |
11fc8cc8bd6c88ca03c8727a860c33b7d8ee644e88763c41d47cbd35df5f7b0f | C | 2,592 | 72 | /*
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... |
7e69a2bffc60cf255c50565f2cf59cdbd7d2db5377fc557532a5af084b525b72 | C | 2,621 | 99 | /*
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... |
b481d1215f6ed092891d9a6f7f32572dc7df29f72e1de173410c0aea256f1bff | C | 2,623 | 72 | /*
igraph library.
Copyright (C) 2007-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... |
d22acfd1a1f47fb9584b039f5cb81c1339ac6d112cdeb4445de58312117a17d8 | C | 2,624 | 151 | #include "f2c.h"
#include "fio.h"
#include "fmt.h"
#ifdef __cplusplus
extern "C" {
#endif
int
y_rsk(Void)
{
if(f__curunit->uend || f__curunit->url <= f__recpos
|| f__curunit->url == 1) return 0;
do {
getc(f__cf);
} while(++f__recpos < f__curunit->url);
return 0;
}
int
y_getc(Void)
{
int ch;
if(f__curunit-... |
e2f7950dffdf314c68327e61f8d46d4a015c9c1b9f25dee78bf086605b0c780a | C | 2,626 | 95 | /* -- 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... |
3a7bc2ee1279ba7b117b7fe490fec9216c199e18e66c8637369feda7d68c8840 | C | 2,632 | 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... |
cff7f111fa498742a16160f1a61ba30668073562b151386c2dcb3d08f5eb97a1 | C | 2,636 | 91 | /* mt.c
*
* Mersenne Twister random number generator, based on the implementation of
* Michael Brundage (which has been placed in the public domain).
*
* Author: Tamas Nepusz (original by Michael Brundage)
*
* See the following URL for the original implementation:
* http://www.qbrundage.com/michaelb/pubs/essays... |
388cd1044bec3461e46b54defea09e9d4f5e402f2a5e26fc4df93c55d2da4840 | C | 2,639 | 159 | #include "f2c.h"
#include "fio.h"
#include "fmt.h"
#ifdef __cplusplus
extern "C" {
#endif
extern char *f__icptr;
char *f__icend;
extern icilist *f__svic;
int f__icnum;
int
z_getc(Void)
{
if(f__recpos++ < f__svic->icirlen) {
if(f__icptr >= f__icend) err(f__svic->iciend,(EOF),"endfile");
return(*(unsigned char *)f... |
1a8675b93384aa2734aeefd17e5bb04f2b028aaa23823948e7bb2f37407bbd99 | C | 2,644 | 85 | /*
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... |
6926da07aefe663b66101f20a9e048b0873f2de8d02c87abb3d52b673b8b9c25 | C | 2,646 | 87 | /*
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 ... |
887c097ff4ad80a9a87d2ea68a95bf25abdfe99788aefde2fc56c29d9577beb9 | C | 2,650 | 90 | /* str2int.c (convert string to int) */
/***********************************************************************
* 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 redistribute ... |
402773c155facfce542d6bb6c52d0088a7dcb8193a56a8421f2365f623f2a5ec | C | 2,652 | 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... |
5e9e289818e0fcc248ad147f09fd4ec04726f8bf60e127ab83ca3c81f0590b7f | C | 2,667 | 100 | /* gcd.c (greatest common divisor) */
/***********************************************************************
* 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 redistribute it... |
3cafbf11bc75937da57bd45673065175bdb8cd2590572e4e0ae4aec78fb87ca5 | C | 2,670 | 88 | /*
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... |
ce34d8958f6f68b17b5d35fc97e9606fe029ad5db1287fdeecb6c5ac3f08347c | C | 2,675 | 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... |
c8a797ef9d4dfc7e6655f3b7e0af34b5ab64de2cc4b6a5ad6d4d6874c620e22d | C | 2,676 | 80 | /*
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... |
ca9ff8402e906aae839139959af3c4c6529077f0570f7e6cac21bae0a031c5ec | C | 2,677 | 86 | /*
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... |
600bc8d566c3612cbbe3a9f99095c6cb9b34a9203a37fbbcf68ae6a1870b2d35 | C | 2,681 | 80 | /* ckcnf.c (check for CNF-SAT problem instance) */
/***********************************************************************
* 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 software: you c... |
2fc27feca86292f10dbb7c50cffe3b4480e76c630500c32130eb7d6283adb385 | C | 2,696 | 76 | /*
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... |
1e73fc9c5dc4aa19278a71d89872281251ca3b1f933c32cc9cdb88bb2a85ea5a | C | 2,711 | 82 | /*
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... |
07ec634d577f63ccfc345d468ed2737d0fcde38c2afa0aea2de70b3519863de3 | C | 2,718 | 102 | /*
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... |
508e99342bd37f1e0e2b6fc0e2d6d5cfd49d3aa5d340ab6fb80fbe6bf12c7902 | C | 2,729 | 121 | #include "f2c.h"
#ifdef KR_headers
double log(), f__cabs(), atan2();
#define ANSI(x) ()
#else
#define ANSI(x) x
#undef abs
#include "math.h"
#ifdef __cplusplus
extern "C" {
#endif
extern double f__cabs(double, double);
#endif
#ifndef NO_DOUBLE_EXTENDED
#ifndef GCC_COMPARE_BUG_FIXED
#ifndef Pre20000310
#ifdef Comment
... |
c95d8cb1609b3804025e13930941b44ab511a801ed130c307bed23860f7df88a | C | 2,732 | 117 | #include "f2c.h"
#include "fio.h"
#include "string.h"
#ifdef NON_UNIX_STDIO
#ifndef MSDOS
#include "unistd.h" /* for access() */
#endif
#endif
#ifdef KR_headers
integer f_inqu(a) inlist *a;
#else
#ifdef __cplusplus
extern "C" integer f_inqu(inlist*);
#endif
#ifdef MSDOS
#undef abs
#undef min
#undef max
#include "io.h"
... |
4b6aa2b2b55cee1304c361545e5ba3ad7a75b3546d5df5dbce59c58bf8d355f3 | C | 2,737 | 77 | /*
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... |
71ef621e5134f383d7efb2e6e163e2102bcdf714ea0e80172cc2e296f323faff | C | 2,743 | 78 | /*
igraph library.
Copyright (C) 2009-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... |
fff14fcf2003c0c79dd7c937644ce0200087970daddc3e572801717e3615d629 | C | 2,753 | 104 | /*
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... |
58310f9b674eaa2b2d5915b6ffccb340645b170eb840988793a55416872a3663 | C | 2,772 | 87 | /*
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... |
ec9d92284e7fcbf721409d5c268f11ba2d84f803cdb8f39e7ec074c9ce3afe62 | C | 2,802 | 70 | /* 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... |
2a46b53236efaedb52a1055c4a0b009855436d5f0695aea14643ac6b809769b0 | C | 2,806 | 73 | /*
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... |
855024b9eb255d793f00ef4c56236993c143fc0c9a48541df1a4f8098c930085 | C | 2,807 | 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... |
882c678eef3c52f884e8606bc3a2438c5b821b6b3e86852913c5165cfdc8b5de | C | 2,813 | 81 | /*********************************************************************
*
* ANSI C Example program:
* WriteDigChan.c
*
* Example Category:
* DO
*
* Description:
* This example demonstrates how to write values to a digital
* output channel.
*
* Instructions for Running:
* 1. Select the digital... |
5fd134b3ca6977db3821d0caef38f0b869526ad66a20fa90ef7079acfdfb732d | C | 2,814 | 82 | /*
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... |
6fd8ced4f3e7659bcc960c24605776eb4a9c2983a0b534b78c58061e52577437 | C | 2,814 | 105 | /*
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... |
d18513a528911a1dcddfb62a6c89016051b2ea984c00c006a30ea12cde6b1549 | C | 2,814 | 79 | /*
igraph library.
Copyright (C) 2009-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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.