Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

[BUG] merge_vertices does not merge vertices of star_graph correctly #1586

Open
hannahtro opened this issue Aug 23, 2021 · 0 comments
Open
Labels
bug confirmed bug producing incorrect results

Comments

@hannahtro
Copy link

Description of bug
When merging the central node of a star_graph with its neighbour, the output graph is an undirected graph.

Code demonstrating bug
g4 = star_graph(5)
gmerged = merge_vertices(g4, [1,2])
neighbors.(Ref(gmerged), vertices(gmerged))

Expected behavior
[2, 3, 4]
[1]
[1]
[1]

Actual behavior
[3, 4]
[]
[1]
[1]

Version information
Julia Version 1.6.2 Commit 1b93d53fc4 (2021-07-14 15:36 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: AMD Ryzen 7 PRO 4750U with Radeon Graphics WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-11.0.1 (ORCJIT, znver2)

LightGraphs v1.3.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug confirmed bug producing incorrect results
Projects
None yet
Development

No branches or pull requests

1 participant