Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How should we interpret the output result? #1

Open
lichengzhang1 opened this issue Oct 6, 2023 · 2 comments
Open

How should we interpret the output result? #1

lichengzhang1 opened this issue Oct 6, 2023 · 2 comments

Comments

@lichengzhang1
Copy link

lichengzhang1 commented Oct 6, 2023

For your first graph (in graph.txt), we get this

1 1 0 0 0 0 0 0 0 0 0 
1 1 1 0 0 0 0 0 0 0 0 
0 1 1 1 0 0 0 0 0 0 0 
0 0 1 1 1 0 0 0 0 0 0 
0 0 0 1 1 1 0 0 1 0 0 
0 0 0 0 1 1 1 0 0 0 0 
0 0 0 0 0 1 1 1 0 1 0 
0 0 0 0 0 0 1 1 1 0 0 
0 0 0 0 1 0 0 1 1 0 0 
0 0 0 0 0 0 1 0 0 1 1 
0 0 0 0 0 0 0 0 0 1 1 
0 -> 1
Augmenting Path (0-1)
2 -> 1
2 -> 3
Augmenting Path (2-3)
4 -> 3
4 -> 5
Augmenting Path (4-5)
6 -> 5
6 -> 7
Augmenting Path (6-7)
8 -> 4
8 -> 7
9 -> 6
Augmenting Path (9-6-7-8)
10 -> 9
6 -> 5
6 -> 7
4 -> 3
4 -> 8
Blossom (4,5,6,7,8)
5 -> 4
6 -> 3
2 -> 1
Maximum Matching = 0[1] 1[0] 2[3] 3[2] 4[5] 5[4] 6[9] 7[8] 8[7] 9[6] 10[-1] 

How should we interpret this result, especially the maximum matching? 0[1] and 1[0] is not same? Why does an edge appears two times, and why does 10[-1] appear? What does -1 mean?

@suvajit-patra
Copy link
Owner

The final result contains all the vertices and which vertex is connected to other vertex with matching edge. 0[1] and 1[0] represent the same matching edge. A vertex has [-1] means the vertex is an unmatched vertex.

@lichengzhang1
Copy link
Author

Thank you. See igraph/igraph#2403. Perhaps you can make a contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants