Skip to content

Clean up nodes on destroy() #12

@curran

Description

@curran

If property nodes have no incoming or outgoing edges in the data flow graph, they should be removed from the graph when a reactive function that references them (as inputs or outputs) is destroy()ed.

To check:

  • inputs with no outgoing edges
  • inputs with no incoming edges
  • output with no outgoing edges
  • output with no incoming edges

When serializing the graph at the last unit test, this is what it looks like now:

{
  "nodes": [
    { "id": "1"  },
    {"id": "2"},
    {"id": "3" },
    ... all the way up to
    {"id": "58" }
  ],
  "links": [
    { "source": "57", "target": 56  },
    { "source": "58", "target": 56 }
  ]
}

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