AssetGraph.__init__#
- AssetGraph.__init__(graph_id, node_assets=None, edge_assets=None, update_policies=None, attr_init='min', flip_assets=False, seed=None)[source]
Initializes the AssetGraph object.
- Parameters:
graph_id (str) – The ID of the graph.
node_assets (dict[str, Asset] | None, optional) – The assets of the nodes. Defaults to None.
edge_assets (dict[str, Asset] | None, optional) – The assets of the edges. Defaults to None.
update_policies (Callable | list[Callable] | None) – The graph update policies to execute during
evolve(). Defaults to None.attr_init (InitPolicy, optional) – The initialization policy for the assets. Defaults to “min”.
flip_assets (bool, optional) – Whether to flip the assets. Defaults to False.
seed (int | None, optional) – The seed for the random number generator. Defaults to None.