Digraphs icon indicating copy to clipboard operation
Digraphs copied to clipboard

Wrong output `SubdigraphsMonomorphisms`

Open MeikeWeiss opened this issue 1 year ago • 3 comments

I have the graph

 d:=Digraph([ [ 2, 3, 4, 5 ], [ 1, 3, 4 ], [ 1, 2, 4, 5 ], [ 1, 2, 3, 5 ], [ 1, 3, 4 ] ]);

and I would like to compute all subgraphs isomorphic to K_{2,3} with SubdigraphsMonomorphisms. In my opinion the output here is wrong because the subgraph/transformation defined by Transformation( [ 2, 5, 1, 3, 4 ] ) which is contained in the output of MonomorphismsDigraphsRepresentatives(CompleteMultipartiteDigraph([2,3]),d) is missing. This subgraph has a different edge set than the subgraphs defined by the returned transformations of SubdigraphsMonomorphisms(CompleteMultipartiteDigraph([2,3]),d).

gap> SubdigraphsMonomorphisms(CompleteMultipartiteDigraph([2,3]),d);
[ Transformation( [ 1, 3, 2 ] ), Transformation( [ 1, 4, 2, 3 ] ), Transformation( [ 3, 4, 2, 1 ] ) ]
gap> MonomorphismsDigraphsRepresentatives(CompleteMultipartiteDigraph([2,3]),d);
[ Transformation( [ 1, 3, 2 ] ), Transformation( [ 1, 3, 2, 5, 4 ] ), Transformation( [ 1, 4, 3, 2 ] ), Transformation( [ 2, 5, 1, 3, 4 ] ) ]

MeikeWeiss avatar Sep 18 '24 09:09 MeikeWeiss

@james-d-mitchell Do you have any idea how to solve it?

MeikeWeiss avatar Sep 30 '24 07:09 MeikeWeiss

Sorry @MeikeWeiss didnt have time to investigate yet, I'll try to look this afternoon

james-d-mitchell avatar Oct 02 '24 06:10 james-d-mitchell

@MeikeWeiss I spent some time yesterday trying to figure out what's going on here, I can confirm that I can reproduce the bug. I'm not yet sure what is causing it, I'll investigate further today and hopefully find a fix.

james-d-mitchell avatar Oct 03 '24 10:10 james-d-mitchell

Resolved in v1.10.0

james-d-mitchell avatar Apr 07 '25 08:04 james-d-mitchell