Skip to content

Understanding output of Graph Matching for unequal sized matches #925

Answered by bdpedigo
dokato asked this question in Q&A
Discussion options

You must be logged in to vote

hi @dokato! I believe in either case, only the first min(len(Gsmall, G)) elements of perm_inds_ will be relevant, the other nodes were essentially matched to nothing - can you confirm @asaadeldin11? @asaadeldin11 I am trying to think whether this behavior would mean that only the first nodes of G are the ones being matched to in the case where the second graph is smaller.

In the meantime, I would just recommend always making the second graph the larger one - is there some reason you want to match things the other way around? the result should not depend on the order here.

regardless of what the answer ends up being we should clarify this in the docs, thanks for bringing this up.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dokato
Comment options

@bdpedigo
Comment options

Answer selected by dokato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants