You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
The result of this expression would be the Relationship so you could continue to add technologies, tags, etc. We could also provide a shortcut that creates a general relationship with description "Uses":
c1>>c2
And we should also support constructing the relationship explicitly:
I would only change one thing, I think, if you instantiate the class, it should not be done in a statement involving shift but involve all arguments, i.e., instead of
Checklist
Is your feature related to a problem? Please describe it.
Currently, to add a relationship between two elements is a little clunky (mirroring the Java API):
I think we can do better in Python.
Describe the solution you would like.
By overriding
__rshift__
and__irshift__
onElement
then we can achieve something much cleaner:The result of this expression would be the
Relationship
so you could continue to add technologies, tags, etc. We could also provide a shortcut that creates a general relationship with description "Uses":And we should also support constructing the relationship explicitly:
This becomes even more useful if people choose to subtype
Relationship
:(here the topic would be added to the properties collection of the Relationship)
The text was updated successfully, but these errors were encountered: