age
age copied to clipboard
[Graph Generation Algorithms] Add properties on creating a complete graph:
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.
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.
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.
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.
This PR was closed because it has been stalled for further 7 days with no activity