Skip to content

Issue in HomomorphismDigraphsFinder for restricted image #697

@MeikeWeiss

Description

@MeikeWeiss

I used the method SubdigraphsMonomorphisms for my algorithms and for this example:

G:=Digraph([ [ 5, 7, 8 ], [ 5, 6, 7 ], [ 4, 6, 8 ], [ 3, 6, 7, 8 ], [ 1, 2, 6, 7, 8 ], [ 2, 3, 4, 5, 7, 8 ], [ 1, 2, 4, 5, 6, 8 ], [ 1, 3, 4, 5, 6, 7 ] ]);
H:=Digraph([[2,3,4],[1,3,4],[1,2,4],[1,2,3,5,6,7],[4,6,7],[4,5,7],[4,5,6]]);

For this example SubdigraphsMonomorphisms(H,G) returns an empty list but MonomorphismsDigraphs(H,G) not. In my opinion this is a contradiction.

I debugged the code and I think the problem is in HomomorphismDigraphsFinder, because:

  HomomorphismDigraphsFinder(H,                   # domain
                                G,                   # range
                                fail,                # hook
                                [],                  # user_param
                                1,                   # max_results
                                HN,                  # hint (i.e. rank)
                                true,                # injective
                                [ 1, 3, 4, 5, 6, 7, 8 ], # image
                                [],                  # partial_map
                                fail,                # colors1
                                fail,                # colors2
                                DigraphWelshPowellOrder(H));

returns an empty list but

HomomorphismDigraphsFinder(H,                   # domain
                                G,                   # range
                                fail,                # hook
                                [],                  # user_param
                                1,                   # max_results
                                HN,                  # hint (i.e. rank)
                                true,                # injective
                                [2,3,4,5,6,7,8],     # image
                                [],                  # partial_map
                                fail,                # colors1
                                fail,                # colors2
                                DigraphWelshPowellOrder(H));

returns a transformation and the both given images lie in the same orbit under the automorphism group of G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA label for issues that are bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions