@classmethod
	def get_graph(cls, item, seen=None):
		if seen is None: seen = dict()
		if item in seen: return seen[item]
		branches = []
		seen[item] = [item, branches]
		for dep in item.depends:
			branch = cls.get_graph(dep, seen)
			if branch: 
				branches.append(branch)
		return seen[item]
return a DAG from a base item and a set of requirements
dataset/ETHPy150Open anchor/make-magic/core/deptools.py/GraphDependencyStrategy.get_graph