pyiron_base.project.delayed.get_graph#
- pyiron_base.project.delayed.get_graph(obj: object, obj_name: str | None = None, nodes_dict: dict = {}, edges_lst: list = [], link_node: str | None = None) Tuple[dict, list][source]#
Get dictionary of nodes with node names as keys and node objects as values. In addition, generate a list of edges, consisting of pairs of node names which are linked together.
- Parameters:
obj (object) – Object to generate dictionary of nodes and list of edges
obj_name (str) – Name of the object
nodes_dict (dict) – Dictionary of nodes
edges_lst (list) – List of edges
link_node (str) – Name of the node to link to
- Returns:
dictionary of nodes and list of edges
- Return type:
dict, list