Skip to content

Conversation

@shravandoda
Copy link
Contributor

@shravandoda shravandoda commented Feb 22, 2019

Fixes #83
This implementation works by creating a dictionary local to the endpointclasses method. The dictionary has aliases of the nodes as keys and the corresponding graph nodes as values. Then it uses another method connect_nodes which takes in the dictionary as well as the endpoint_property_list as argument and adds edges between the nodes. This way it does not have to traverse through the whole graph (which contains collectionEndpoints as well while the dictionary only contains concerned classEndpoints). Although the space complexity of this method is greater than the current implementation but the time complexity is reduced (thanks to python's dictionary.get() method's average case time complexity of O(1)).

@Mec-iS @sandeepsajan0 kindly review.

@Mec-iS Mec-iS requested a review from sandeepsajan0 February 23, 2019 11:59
@Mec-iS
Copy link
Contributor

Mec-iS commented Feb 23, 2019

Related to #72

alias="Entrypoint",
properties=entrypoint_properties)
self.redis_graph.add_node(entrypoint_node)
redis_connection.set("EntryPoint", entrypoint_properties)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shravandoda classes_objects and collection-endpoints also have the same error.
I think @PrajwalM2212 also working on the same issue in PR #73. So, Please ask him.

break
break
node_alias[str(endpoint)] = class_object_node
endpoint_property_list[endpoint] = property_list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repetition of this line. see line 232.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandeepsajan0, I think I should close this PR (as @Mec-iS stated in #83)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shravandoda You can close it. And try to do it in a better way as @Mec-iS suggest.

@xadahiya
Copy link
Member

Closing as requested

@xadahiya xadahiya closed this Mar 21, 2019
@shravandoda shravandoda deleted the improveAlgo branch March 21, 2019 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants