-
-
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
We need some graph transformers #42
Comments
Adding support for thejit would indeed be nice 👍
I think perhaps not. But perhaps yes, it might even be closer to our GraphViz "exporter" (despite the fact that we currently don't call it "exporter"). I have yet to work with thejit, but afaikt its documentation suggests it loads a simple JSON data object. So exporting the proper structure as an PHP array and providing an additional helper method which returns the JSON string should be fairly easy. If you're requesting (fictional method) In my opinion, the main issue here is that we don't have a clear distinction of what an Any thoughts on this? |
The transformer just transforms the current graph into a graph representing a tree. So that could be kept internally. The fact that thejit spacetree require a tree is more exporter related. Another example is is ie Chord Diagram for http://d3js.org/ where we must transform the edge.weight into a table structure aka matrix. http://bl.ocks.org/mbostock/4062006 So I expect a directory layout aka package structure like
Regarding the Drupal code the php tree structure is off coarse transformed into a space tree json. See http://skillcompass.org/ (which is Drupal + Graph API + thejit) |
So in that case, I think it's probably better to add it as an algorithm, perhaps somewhat similar to However we're going to implement this, I'm all for returning a new |
New tree algorithms are going to be added with PR #44. So what else has to be sorted out? :) |
Ping @clemens-tolboom. What's your status on this ticket? Imho this can be closed now that PR #44 has been merged into master. Besides, I've set up a demo project as clue/graph-thejit, so I don't think it'll benefit the core of this library. |
According to the above comments, I think this is resolved. Otherwise, feel free to re-open or comment. |
I'm working to hard on other stuff ... sorry not to keep up the pace :-/ |
We do have algorithms but we should have some transformers which test for an algorithm then apply a solution to validate that algorithm.
For example http://thejit.org has a space tree so we must supply it a tree. But what if our structure is only a DAG or worse a Cyclic Graph?
It's not hard to transform a DAG into a tree as I did http://drupalcode.org/project/thejit.git/blob/refs/heads/7.x-1.x:/modules/thejit_spacetree/thejit_spacetree.module#l368
The text was updated successfully, but these errors were encountered: