-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
core-compilerNon user-facing improvementsNon user-facing improvementspriority-1Not bug, but high priority issue / PRNot bug, but high priority issue / PR
Milestone
Description
NetworkX
's default is to separate the name of a node from the data attached to it; accessing a node by name G.nodes["n"]
returns a dictionary with the data, here {"contents": Union[Var, Argument, RandVar, Transformation]}
. As a result, the code is full of ["contents"]
dictionary access calls, which is aesthetically unpleasant and unintuitive.
I think this behaviour can be overridden by subclassing the NodeView class in mcx.core.graph
and overriding the graphs' nodes property.
This would greatly improve the code readability.
Metadata
Metadata
Assignees
Labels
core-compilerNon user-facing improvementsNon user-facing improvementspriority-1Not bug, but high priority issue / PRNot bug, but high priority issue / PR