-
Notifications
You must be signed in to change notification settings - Fork 6
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
Documentation? #6
Comments
If you haven't found a solution, I just found asciinet and wanted the same thing. Here is my very simple solution -- adding a labels dict as a kwarg to the graph_to_ascii function and method. labels is keyed by the node label and provides a string of data for each node -- the more obvious way to do this would be running thru the nodes and extracting node attributes for these values. I noticed that the vertice and edge labels had to be changed in the same way. The updated provided earlier by @noragen also here (line 107).
So now the toy example:
gives a (properly formatted):
┌──────┐ ┌───────┐ │ |
Looking to add node data to graphs. Any plans on showing how to do this?
The text was updated successfully, but these errors were encountered: