Skip to content

Removing nodes from DAGS leaves those nodes in top/bottom #46

@aphyr

Description

@aphyr

It looks like DirectedAcyclicGraph.remove only ever expands the top/bottom sets, which means that removing a vertex from a DAG leaves it in the top and bottom sets indefinitely.

top.union(graph.out(vertex).stream().filter(v -> graph.in(v).size() == 1).collect(Sets.collector()));

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