WendelLana opened a new pull request, #1134: URL: https://github.com/apache/age/pull/1134
This new function adds the Watts-Strogatz graph algorithm for Apache AGE. (Project [Apache AGE Graph Generation Algorithms](https://github.com/orgs/apache/projects/103)) For more information about Watts-Strogatz see [this issue](https://github.com/apache/age/issues/276). 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
