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

Implement listNeighbors #99

Closed
dehann opened this issue Apr 10, 2022 · 0 comments · Fixed by #221
Closed

Implement listNeighbors #99

dehann opened this issue Apr 10, 2022 · 0 comments · Fixed by #221
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dehann
Copy link
Member

dehann commented Apr 10, 2022

listNeighbors(clicon..., "x4")

get back the list of factors connected to that variable

["x3x4f_sdr"; "x4x5f_3r3"; "x4l7f_34r"]

And visa versa for the variables connected to a factor, but that case should just alias to equivalent of:

getVariableOrder(dfg, fctlbl)

which gives back

["x3";"x4"]

Thereafter, alias the specific dispatches for list and ls, also lsf.

PS, I'm writing hot and loose wrt String vs Symbol -- should resolve the default there better.

@Affie Affie self-assigned this Apr 19, 2023
@Affie Affie added this to the v0.6.0 milestone Apr 19, 2023
@Affie Affie linked a pull request Apr 19, 2023 that will close this issue
12 tasks
@Affie Affie added the enhancement New feature or request label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants