-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add more encapsulations #12
Comments
I think you could easily build those methods on a structure which embeds the Graph structure, or am I missing something? NodesAll, how about GetNodes? Where are do you want to use these methods? |
I tried that before, yes, I can build those methods, but I also bumped into problems like the following.
I.e., I wasn't able to use my structure as a direct replacement of the Graph structure before. Maybe I did something wrong. Anyway, if you don't mind, I hope those encapsulation wrappings are in gographviz instead of mine. So would one pull request containing two separated commits of adding
I'm more interested in traversing the graph than presenting them. So knowing the nodes, the edges is the very least I need. More encapsulation wrappings might be need. I'll consult with you in new threads after we finish this. Thanks |
Maybe you could show me the code that gives you those errors? |
No reply |
I need to access the Edges internal data:
but I don't want to dip directly into the above data structure, but would like to access them through encapsulations instead. So, I'd like to propose the following access methods:
Or something similar. Would that be OK? I don't mind patch myself and send in the pull request.
Moreover, I also need the access method of NodesAll for all the nodes within the given Graph:
// NodesAll returns all the nodes within the given Graph.
Would that be OK to have such encapsulations? Again, I don't mind patch myself and send in the pull request.
Thanks
The text was updated successfully, but these errors were encountered: