opusonesolutions / asciigraf Goto Github PK
View Code? Open in Web Editor NEWA python library for making ascii-art into network graphs.
License: MIT License
A python library for making ascii-art into network graphs.
License: MIT License
Is it possible to use this library to generate ASCII graphs from a NetworkX graph object?
Once travis-ci/travis-ci#9815 is resolved, we can use TravisCI to test against python3.7.
I tried the work-around mentioned in the comments but it didn't seem to run tests for 3.7
Code climate is a static analyzer that can be hooked up to PRs, etc. It produces reports like https://codeclimate.com/github/chartjs/Chart.js/issues.
Currently, asciigraf
returns a networkx graph datastructure where every node has a position relative to the top-left corner of the string in which the network is drawn. It would be great if the graph also came with a length on each edge which indicated the number of characters in the edge. For example:
asciigraf.graph_from_ascii("""
(13) (10)
n0-------------n1----------n2
|
| (3)
|
n4
""").nodes(data=True)
>>> [('n0', {'position': Point(3, 8)}),
('n1', {'position': Point(3, 23)}),
('n2', {'position': Point(3, 35)}),
('n4', {'position': Point(7, 24)})]
If we did this, you could do something like
asciigraf.graph_from_ascii("""
(13) (10)
n0-------------n1----------n2
|
| (3)
|
n4
""").edges(data=True)
>>> [('n0', 'n1', {'length': 13}),
('n1', 'n2', {'length': 10}),
('n1', 'n4', {'length': 3})]
It would be valuable to be able to mark an edge with a modifier. E.G. in the below graph, the edge (n2, n3)
has an arrow modifier which could be used to make a directed graph, or to modify the significance of the edge in some other way.
n1---------n2
^
|
n3
We already support edge labels such as n1---(label_1)---n2
but this change would allow the user to have modifiers and labels on the same edge
``n1<---(edge_3)--->n2`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.