Skip to content

enable node/link deletion #14

@charlesdaniels

Description

@charlesdaniels

low pri, as there is no obvious use case at this time...

It should be possible to delete nodes and links. This should be exposed via the TCL API.

To delete a node:

  1. de-allocate internal buffer
    • warn/error if there are flits still left in it?
  2. delete nocsim_node* entry from state->nodes
  3. (GUI only) de-allocate corresponding graph node from AG_Graph
    • AG_GraphFindNode()
    • may not be possible to delete a node at run-time, so instead the node could be hidden and have it's userPtr cleared to NULL
  4. De-allocate node structure.

To delete a link (may change once #6 is done):

  1. Clear the link pointer from the incoming and outgoing lists on the two endpoint nodes
  2. (GUI only) de-allocate corresponding graph edge from AG_Graph
    • Same caveats apply as with nodes.
  3. De-allocate the link structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew features that does not exist currentlylow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions