Skip to content

Commit b35381f

Browse files
committed
C code node degree+edge betweenness algorithm implmentation under utils folder
1 parent da475a2 commit b35381f

File tree

2 files changed

+717
-0
lines changed

2 files changed

+717
-0
lines changed

utils/C_implementation/RUN.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
####### undirected edgelist:
2+
cd /your_directory && gcc -O2 -m64 -o graph_clustering cluster_degree_betweenness.c -DDIRECTED=false -I/your_igraph_c_location/include -L/your_igraph_c_location/lib -ligraph && ./graph_clustering /your_directory/edgelist.txt
3+
4+
Number of nodes: 16
5+
Number of edges: 470
6+
Iteration with highest modularity: 424
7+
Modularity for full graph with detected communities: 0.0862539610683567
8+
Number of communities: 5
9+
Assigned community for each node:
10+
0, 1, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 4
11+
Nodes:
12+
T: Small Molecule, I: MAbs Checkpoint, T: Antibody-Drug Conjugate, I: MAbs Co-Stimulatory, I: Combined, T: Combined, I: MAbs Targeting, T: Monoclonal Antibody, I: Other, I: Adoptive Cell Transfer, Drug Repurposing, I: Anti Cancer Vaccine, Chemotherapy, I: Oncolytic Virus, Combined Modality, Radioconjugate
13+
14+
15+
####### directed edgelist:
16+
cd /your_directory && gcc -O2 -m64 -o graph_clustering cluster_degree_betweenness.c -DDIRECTED=true -I/your_igraph_c_location/include -L/your_igraph_c_location/lib -ligraph && ./graph_clustering /your_directory/edgelist.txt
17+
18+
Number of nodes: 16
19+
Number of edges: 470
20+
Iteration with highest modularity: 438
21+
Modularity for full graph with detected communities: 0.0799185151652332
22+
Number of communities: 8
23+
Assigned community for each node:
24+
0, 1, 2, 2, 3, 2, 4, 5, 5, 2, 5, 2, 2, 2, 6, 7
25+
Nodes:
26+
T: Small Molecule, I: MAbs Checkpoint, T: Antibody-Drug Conjugate, I: MAbs Co-Stimulatory, I: Combined, T: Combined, I: MAbs Targeting, T: Monoclonal Antibody, I: Other, I: Adoptive Cell Transfer, Drug Repurposing, I: Anti Cancer Vaccine, Chemotherapy, I: Oncolytic Virus, Combined Modality, Radioconjugate
27+

0 commit comments

Comments
 (0)