Skip to main content
IBM Quantum Platform
번역 정보

이 페이지의 추가 언어 번역이 곧 제공될 예정입니다.

NodeCandidate

class samplomatic.graph_utils.NodeCandidate(graph: PyDiGraph[T, S], node: T)

GitHub

Bases: Generic[T, S]

A node that we want to add to the graph, but not yet.

The node is only added when we ask for its node_idx in the graph.

Parameters

  • graph – The graph to add the node to.
  • node – The node data for the node to add.

Attributes Summary

칼럼 1
칼럼 2
is_addedWhether the node has yet been added to the graph.
node_idxThe node index in the graph.

Attributes Documentation

is_added

Whether the node has yet been added to the graph.

node_idx

The node index in the graph.

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.