age icon indicating copy to clipboard operation
age copied to clipboard

[Graph Generation Algorithms] Add properties on creating a complete graph:

Open markgomer opened this issue 1 year ago • 2 comments

This work is part of the Graph Generation Algorithms project, issues 271 and 275.

  • change hint on top of create_complete_graph function to match the new arguments;
  • add some comments;
  • move same vertex/edge label check up in order to prevent creation of an empty graph;
  • change on age_create_barbell_graph to be compatible with the new arguments on create_complete_graph;
  • change age--1.2.0.sql to receive agtype properties as arguments of create_complete_graph;
  • change and add regress tests.

markgomer avatar May 04 '23 20:05 markgomer

To gain a better understanding of the rationale behind your thought to add static properties to all nodes in the complete graph, Could you provide a use case that demonstrates that purposed changes are of compulsory nature. It would be beneficial for me, and potentially for others as well, to users and the need for adding a list of static properties to a complete graph.

muhammadshoaib avatar Jun 13 '23 13:06 muhammadshoaib

My idea of implementing this appeared just because it's in the description of the issue #271.

But I think that, since the purpose of the function is to create a new set of nodes in a graph, it would be beneficial for them to have something like an initial structure in common.

A use case I thought would be on creating a new group with a set of individuals on a social media. Maybe they could have an initial Status of newcomer in this group, with 0 reputation and Default privacy settings.

In the same line, the connection between them would start with a strength of 1, and if they are best friends as false.

We would start that graph with the command:

SELECT create_complete_graph('social_media', 20, 
'group_connection', '{"strength":"1", "best_friends":"false"}',
'that_new_group', '{"Status":"Newcomer", "Reputation":"0", "Privacy_settings":"Default"});

So that would serve as a baseline or starting point for all users, making the initialization of the graph more straightforward.

markgomer avatar Jun 13 '23 14:06 markgomer

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[bot] avatar May 11 '24 00:05 github-actions[bot]

This PR was closed because it has been stalled for further 7 days with no activity

github-actions[bot] avatar May 20 '24 00:05 github-actions[bot]