Closed sshin23 closed 4 years ago
Thanks for putting this together. I ran into a few issues running the tests with this commit. I made some minor adjustments to the @linkconstraint macro, and also set default node attachments if not specified. We should be able to merge once I verify the tests pass.
I ended up making minor additions. I added a set_attached_node
function which makes sure the attached node is actually in the linkconstraint. I also updated the tests. Everything seems to pass now.
This should allow syntax:
@linkconstraint(graph,n1[:x]==n2[:x],attach=n1)