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

[Graph Generation Algorithms] Added Watts-Strogatz Graph and regression tests #1134

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

WendelLana
Copy link
Contributor

This new function adds the Watts-Strogatz graph algorithm for Apache AGE. (Project Apache AGE Graph Generation Algorithms)
For more information about Watts-Strogatz see this issue.
Syntax:

ag_catalog.age_create_watts_strogatz_graph(graph_name Name, n int, k int, p float
                                    vertex_label_name Name DEFAULT = NULL,
                                    vertex_properties agtype DEFAULT = NULL,
                                    edge_label_name Name DEAULT = NULL,
                                    edge_properties agtype DEFAULT = NULL,
                                    bidirectional bool DEFAULT = true)

Input:

  • graph_name - Name of the graph to be created
  • n - The number of nodes
  • k - Each node is joined with its k nearest neighbors in a ring topology.
  • p -The probability of rewiring each edge
  • vertex_label_name - Name of the label to assign each vertex to.
  • vertex_properties - Property values to assign each vertex. Default is NULL
  • edge_label_name - Name of the label to assign each edge to.
  • edge_properties - Property values to assign each edge. Default is NULL
  • bidirectional - Bidirectional True or False. Default True.

@WendelLana WendelLana changed the title Added Watts-Strogatz Graph and regression tests [Graph Generation Algorithms] Added Watts-Strogatz Graph and regression tests Aug 11, 2023
Copy link

This PR is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Stale issues/PRs label May 11, 2024
@MuhammadTahaNaveed MuhammadTahaNaveed removed the Stale Stale issues/PRs label May 11, 2024
Copy link

This PR is stale because it has been open 60 days with no activity. Remove "Abondoned" label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale Stale issues/PRs label Jul 11, 2024
@github-actions github-actions bot removed the Stale Stale issues/PRs label Jul 18, 2024
Copy link

This PR is stale because it has been open 60 days with no activity. Remove "Abondoned" label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale Stale issues/PRs label Sep 16, 2024
@jrgemignani
Copy link
Contributor

@WendelLana All new functions need to be added to the file age--1.5.0--y.y.y.sql to allow for upgrading.

@github-actions github-actions bot removed the Stale Stale issues/PRs label Sep 17, 2024
@WendelLana
Copy link
Contributor Author

@WendelLana All new functions need to be added to the file age--1.5.0--y.y.y.sql to allow for upgrading.

Done

watts strogatz function has to be in agtype_typecast.sql to be built
into age--1.5.0.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants