Skip to content

Graph Editor improvements for edges and links#2764

Open
jstone-lucasfilm wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_graph_edges
Open

Graph Editor improvements for edges and links#2764
jstone-lucasfilm wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_graph_edges

Conversation

@jstone-lucasfilm
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm commented Jan 31, 2026

This changelist improves the management of edges and links in the MaterialX Graph Editor, including the following specific changes:

  • Consolidate duplicated edge creation and erasure into Graph::createEdge and UiNode::eraseEdge methods.
  • Synchronize Graph::removeEdge and Graph::deleteNode with the global edge list, fixing cases where stale edges could persist.
  • Replace the static ID counter in Link with explicit construction through GraphState::nextUiId.
  • Simplify Graph::edgeExists and Graph::linkExists implementations for clarity, taking arguments by const reference.
  • Add bounds and null checks across edge and link operations to prevent undefined behavior.

This changelist improves the robustness and maintainability of edge and link management in the MaterialX Graph Editor, including the following specific changes:

- Consolidate duplicated edge creation and erasure into `Graph::createEdge` and `UiNode::eraseEdge` methods.
- Synchronize `Graph::removeEdge` and `Graph::deleteNode` with the global edge list, fixing cases where stale edges could persist.
- Simplify `Graph::edgeExists` and `Graph::linkExists` implementations for clarity, taking arguments by const reference.
- Replace the static ID counter in `Link` with explicit construction through `GraphState::nextUiId`.
- Add bounds and null checks across edge and link operations to prevent undefined behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant