Skip to content

key/value properties on Node and Link

Geoff Lawler requested to merge kv-props into moa

A patch that adds key/value properties to the Node and Link message in xir. This is an MR to moa and it is used in place of the tags field that was there.

To use:

net = Network("BORK")

nodes = [net.node(name) for name in ["one", "two"]]
nodes[0].properties["groups"] = ["leaves", "edges"]

link = net.connect[nodes]
link.properties["emu"] = ["foob"]

...

Merge request reports