MCXCTTY(1)
mcx ctty(1) π
okay bestie, this is a USER COMMANDS page for mcx ctty, and I'm gonna walk you through it like we're texting at 2am. no cap, every single flag is here. let's go π
β¨ NAME β¨
mcx_ctty β compute betweenness centrality for network nodes or network edges π¦
β¨ SYNOPSIS β¨
mcx ctty [options] [matrix-file]
so like, plot twist: mcxctty is not in actual fact a program. this manual page is just documenting the behaviour and options of the mcx program when it's invoked in mode ctty. the options -h, --apropos, --version, -set, --nop, -progress <num> are accessible in all mcx modes, and they're described over in the mcx manual page, mwah π
mcx ctty [-abc <fname> (specify label input)] [-imx <fname> (specify
matrix input)] [-extent <int> (only consider paths of length at most
<int>)] [--edge (compute edge betweenness centrality)] [-o <fname>
(output file name)] [-tab <fname> (use tab file)] [-t <int> (use <int>
threads)] [-J <intJ> (a total of <intJ> jobs are used)] [-j <intj> (this
job has index <intj>)] [-h (print synopsis, exit)] [--apropos (print
synopsis, exit)] [--version (print version, exit)]
β¨ DESCRIPTION β¨
mcx ctty computes betweenness centrality for all nodes or all edges in a graph, using the between centrality update algorithm from [1]. and ngl, the program is not yet able to take into account edge weights β that's just how it is rn.
the input graph/matrix, if you specify it with the -imx option, has to be in mcl matrix/graph format. you can use label input instead by using the -abc option. go read mcxio(5) for a description of these two input formats, iykyk π
by default mcx diameter reads from STDIN and expects matrix format. to specify label input from STDIN, use -abc -. π«
β¨ OPTIONS β¨
-abc <fname>(label input) β the file name for input that is in label format. π-imx <fname>(input matrix) β the file name for input. STDIN is assumed if not specified. π«Ά-o <fname>(output file name) β the name of the file to write output to. πΎ-extent <int>(only consider paths of length at most<int>) β okay so this option will lead to different results. results will still be informative though, being representative for the local context in which nodes reside. and fr, it probably does not make sense to use values smaller than four or five. π--edge(compute edge betweenness centrality) β the output will be a matrix rather than a labeled list of values. if the program is split into multiple jobs with the-jand-Joptions, the resulting outputs have to be collated usingmcx collect --add-matrixfollowed by the respective output file names for each of the jobs. π₯-tab <fname>(use tab file) β this option causes the output to be printed with the labels found in the tab file. with-abcthis option will, additionally, construct a graph only on the labels found in the tab file. if this option is used in conjunction with-imxthe tab domain and the matrix domain are required to be identical. β-t <int>(use<int>threads)-J <intJ>(a total of<intJ>jobs are used)-j <intj>(this job has index<intj>)
computing centrality scores in a graph is time-intensive for large graphs. if you have multiple CPUs available consider using as many threads. additionally it is possible to spread the computation over multiple jobs/machines. these three options are described in the clmprotocols manual page. the following set of options, if given to as many commands, defines three jobs, each running four threads. π
-t 4 -J 3 -j 0 -o out.0
-t 4 -J 3 -j 1 -o out.1
-t 4 -J 3 -j 2 -o out.2
for node centrality (the default mode) the output can then be collected with
mcx collect --add-column -o out.all out.[0-2]
for edge centrality (invoked with --edge) the output should be collected with
mcx collect --add-matrix -o out.all out.[0-2]
this collection step is only necessary if the -J was used with a value greater than one. in particular, if threads were used but jobs were not, there will be a single output corresponding to the end result. π (good news tho, less collating for you)
β¨ REFERENCES β¨
[1] Ulrik Brandes, A Faster Algorithm for Betweenness Centrality. Journal of Mathematical Sociology 25(2): 163-177, (2001). http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.11.2024 π
β¨ SEE ALSO β¨
mcxio(5), and mclfamily(7) for an overview of all the documentation and the utilities in the mcl family. π§
aaaand that's the whole page bestie, you ate that π
β¨ this was mcx ctty from the 22-282 source, dated 9 Oct 2022 β go compute some centrality, main character ππ¦
π¦ where this page comes from
- debian bookworm: mcl 1:22-282+ds-2 Β· GPL-3.0-or-later
- debian trixie: mcl 1:22-282+ds-4 Β· GPL-3.0-or-later
- ubuntu noble: mcl 1:22-282+ds-2 Β· GPL-3.0-or-later
- ubuntu questing: mcl 1:22-282+ds-4
- ubuntu resolute: mcl 1:22-282+ds-4build1 Β· GPL-3.0-or-later
- ubuntu stonking: mcl 1:22-282+ds-4build1 Β· GPL-3.0-or-later
- Copyright (c) 2022 Stijn van Dongen
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms