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

IGBipartiteProjections mixes up vertex names in the output #132

Open
szhorvat opened this issue Apr 16, 2024 · 0 comments
Open

IGBipartiteProjections mixes up vertex names in the output #132

szhorvat opened this issue Apr 16, 2024 · 0 comments

Comments

@szhorvat
Copy link
Owner

The vertex names in the result of IGBipartiteProjections are sometimes mixed up, depending on the ordering of the given partitions.

g = IGShorthand["1-a,1-b,1-c,2-a,2-c,3-d,a-3"]
image
Graph[#, VertexLabels -> Automatic] & /@ IGBipartiteProjections[g, {{"a", "d", "c", "b"}, {1, 2, 3}}]
image

Notice that in the result the names/labels of b and d are incorrectly exchanged.

Using IGBipartiteProjections[g, {{"a", "b", "c", "d"}, {1, 2, 3}}] (not the positions of b and d in the input) would be fine.

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

1 participant