Пример #1
0
	def __init__(self, graph = None, handle = None):
		if handle is None:
			if graph is None:
				self.handle = None
				raise ValueError("flow graph node must be associated with a graph")
			handle = core.BNCreateFlowGraphNode(graph.handle)
		self.handle = handle
		self._graph = graph
		if self._graph is None:
			self._graph = FlowGraph(handle = core.BNGetFlowGraphNodeOwner(self.handle))
Пример #2
0
 def __init__(self, graph, handle=None):
     if handle is None:
         handle = core.BNCreateFlowGraphNode(graph.handle)
     self.handle = handle
     self.graph = graph