Jmod allows to select multple network files using a regular expression or regex. First, a single file can be selected by clicking on the button Browse. The absolute path to this file is then displayed next to Networks. In our example, we want to profile the performance of a community structure detection methods implemented in Jmod using LFR graphs.
Selection shows that one file is effectively selected.
The first motivation for selecting multiple files is to automate the processing of many networks. There is also another benefit if the detection method selected has not been parallelized (i.e. the method can not use multiple processors to speed up the detection). In Jmod, a method can use multiple threads if it has the option --numproc, otherwise several networks can be processed in parallel using this option:
In our example, we have 20 network files in the same folder named network_1.tsv, network_2.tsv, ..., network_20.tsv. The char '*' (also called wildcard) can be used to specify that a substring can take any values. In the following example, we use '*' to tell Jmod to select all the network files whose path starts with [...]small/mu10/network_, ends with .tsv and has in-between any substring.
The following regex could also have been used:
||If mu10 only contains network files
||To select only TSV network files
To select individual networks, replace '*' by
||Select network_1.tsv to network_3.tsv
Ranges of numbers can also be specified using regex, even thought there is no really simple ways to do it. The following example shows how to select only a subset of the networks located in the folder mu10 are selected.
||1) Match network_2.tsv to network_7.tsv
||2) Match network_10.tsv to network_15.tsv
||Select networks that match 1) or 2)
For more detailed information about regex: