Skip to content
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

automatic graph construction #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

msurkovsky
Copy link
Contributor

@msurkovsky msurkovsky commented Jul 27, 2017

I did a first version of automatic construction of graphs from structure. I'd be glad for any feedback, is it a right way or do you have any other idea how to extract information and what to specify? Tomorrow I'm going to prepare more examples of usage and try to use Graph from the lib instead of ours.

Here is a very simple example:

import haydi as hd
from haydi.ext.graphsrenderer import InstGraphRenderer

nodes = hd.Range(3)
edges = nodes * nodes

g = edges.filter(lambda (x, y): x != y).run()
gr = InstGraphRenderer(g)
# gr = gr.nodes(nodes.run()) # if not used automatic identification of nodes is proceed

G  = gr.assemble_graph()

G.write("test.dot")

@msurkovsky msurkovsky force-pushed the automatic-graph-renderer branch 2 times, most recently from 87264d1 to 47b4901 Compare August 1, 2017 22:06
@msurkovsky msurkovsky changed the title WIP: first version of automatic graph construction automatic graph construction Aug 3, 2017
@msurkovsky
Copy link
Contributor Author

I consider the pull request as final from my side :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant