def get_valid_nodes(self, graph): valid = [] for node_name in graph.nodes(): node = graph.node.get(node_name) if not node.get('empty') and is_enabled(node): valid.append(node_name) return valid
def _is_graph_member(self, node_name): node = self.manifest.nodes[node_name] if node.resource_type == NodeType.Source: return True return not node.get('empty') and is_enabled(node)
def _is_graph_member(self, node_name): node = self.manifest.nodes[node_name] if node.resource_type == NodeType.Source: return True return not node.get('empty') and is_enabled(node)