---
name: "mcx"
section: "1"
platform: "linux"
package: "mcl"
version: "1:22-282+ds-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mcx"
---

# mcx(1)

mcx - perform various computations on graphs and matrices

```
   mcx <mode> [mode-options] [mode-files]
```

```

```

**mcx** implements a variety of computations on graphs and matrices. The first argument to **mcx** should be a *mode*, which is a string establishing the type of computation to invoke. Each mode *mode* is described in the mcx*mode* manual page. The currently available modes are **convert**, **diameter**, **clcf**, **q** and **ctty**. The **convert** mode is thus described in the **mcxconvert** manual page.

Invoking **mcx** without arguments causes it to print out a list of available modes with a short description of the type of command line expected by that mode.

Invoking **mcx** with just a mode will print out a longer listing of options available for that particular mode. Modes that are able to function normally without arguments can be invoked by adding the *--nop* argument.

Several options are shared between all **mcx** modes. Note that these options are specified after the **mode**. See **OPTIONS**.

The **--version** causes **mcx** to print out version and license information.

Issuing *mcx help mode* will cause **mcx** to look for a manual page describing *mode* and display it if found. This requires that the MANPATH environment variable contains the directory in which the MCL-edge manual pages were installed. This will usually be `PREFIX/share`, where `PREFIX` is the path with which the software was configured.

These are options that pertain to all modes. They should be specified *after* the mode argument.

**-h** (*synopsis*)\
 **--help** (*synopsis*)\
 List available options.

**--nop** (*no-op*)\
 Not an option. This option has no effect then to increment the argument count. This can be useful for **mcx** modes which are able to function without any options. Such a mode typically reads from STDIN, writes to STDOUT, and uses default settings. However, simply specifying a mode without options leads **mcx** to output a list of available options for that mode. This can be prevented by using the **--nop** option.

**-set** (*key=val*)\
 Sets the key **key** to value **val** in the environment. Some modes allow adjustment of settings in this manner.

**-progress** \<num\> (*progress interval size*)\
 Defines the interval that defines the progress frequency.

**--debug** (*turn on debugging*)\
 Turn debugging on.

**--version** (*show version*)\
 Show version.

Stijn van Dongen.

**[mclfamily(7)](/mclfamily/7.md)** for an overview of all the documentation and the utilities in the mcl family.
