[Nauty] Filters graphs with diameters greater than 2 and less than 4
Brendan McKay
Brendan.McKay at anu.edu.au
Thu Sep 28 22:19:36 AEST 2023
Hi Licheng,
geng -c 7 | pickg -Z2:4
You can use a range like that for all numerical parameters. You can
also use -Z:4 for <=4 and -Z2: for >=2.
I'll answer your earlier question tomorrow.
Brendan.
On 28/9/2023 9:43 pm, lczhangmath wrote:
> Hello,
>
>
> The second question in my email, titled "matching number and operations between parameters", contains this question, and I recount it in detail here.
>
>
> As with equations, we sometimes need to filter for cases that satisfy a parametric inequality. For example, I
> would like to get all 7-vertex graphs with diameter k where k is greater than or equal to 2 and less than or equal to 4.
>
>
> At this time, either I use the external script (e.g. sagemath) or I run the following shell script, but the sctipt always repeats the execution of geng, so the efficiency is not high.
>
>
> for i in {2..4}
> do
> echo "Running geng 7 -c | pickg -V -Z$i"
> geng 7 -c | pickg -Z$i >> output.txt
> done
>
>
> I don't know where I can change the source code to achieve this.
>
>
>
>
> Best regards,
> Licheng Zhang
> _______________________________________________
> Nauty mailing list
> Nauty at anu.edu.au
> https://mailman.anu.edu.au/mailman/listinfo/nauty
More information about the Nauty
mailing list