Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliased edges and inter-edge comparisons #110

Closed
j6k4m8 opened this issue Feb 1, 2022 · 1 comment · Fixed by #121
Closed

Aliased edges and inter-edge comparisons #110

j6k4m8 opened this issue Feb 1, 2022 · 1 comment · Fixed by #121
Assignees
Labels
DSL enhancement New feature or request parser
Milestone

Comments

@j6k4m8
Copy link
Member

j6k4m8 commented Feb 1, 2022

# Alias is of the form `as <name>`
A -> B as AB_edge
# other constraints go before alias:
C -> B [foo=bar] as CB_otheredge

# Comparison constraints:
AB_edge.length > CB_otheredge.length

# You can also use constraints on non-comparisons:
AB_edge != 12

my_edge(a, b) {
    a -> b as ab
    b -> a as ba

    # comparison constraints in macros:
    ab.length > ba.length
}
foo_node -> bar_node [length > 5] as my_new_edge
@j6k4m8 j6k4m8 added enhancement New feature or request DSL parser labels Feb 1, 2022
@j6k4m8 j6k4m8 self-assigned this Feb 1, 2022
@j6k4m8 j6k4m8 changed the title Aliased edges Aliased edges and inter-edge comparisons May 2, 2022
@j6k4m8 j6k4m8 added this to the Version 1.0.0 milestone May 2, 2022
@j6k4m8
Copy link
Member Author

j6k4m8 commented Jun 7, 2022

Macro support is still outstanding.

@j6k4m8 j6k4m8 mentioned this issue Jun 7, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSL enhancement New feature or request parser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant