Skip to content

Trying to remove a loop edge makes stinger go into an infinite loop #5

@rohitvarkey

Description

@rohitvarkey
using StingerWrapper
s = Stinger()
insert_edge!(s, 0, 1, 1, 0, 0)
remove_edge!(s, 0, 1, 1) #Goes into infinite loop

The C definition of remove_edge! does have a note specifying how this function should not be called concurrently with the same source.

@jpfairbanks Does this case come under that condition? I guess we should add a check for this at the wrapper side (in remove_edge) in any case.

If we are not able to allow for deletion of loop edges, should we allow such an edge to be inserted in insert_edge! in the first place?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions