I'm considering setting up Graphviz to work with the Node Relativity module. I'm guessing that the easiest way to do that is to build the right queries from scratch and write the DOT syntax from scratch. Has anyone used these two modules together and is there a better (easier / quicker) way to go about it?
Thanks.
Comments
Comment #1
infojunkieGraphviz Filter includes a submodule called "CCK Schema" which supports Node Relativity. Please try it and let me know what's missing for you.
Comment #2
chien_fu commentedNode Relativity is not related to CCK. Maybe you're thinking Node Reference? Relativity creates another dbase with sets of related nodes (parent & child)
Comment #3
infojunkieI meant Node Relativity. Both Node Reference *and* Relativity are supported in the CCK Schema module. Did you try the module?
Comment #4
chien_fu commentedWhoa... cool. unfortunately I can't try it until I upgrade my server to support graphviz.
But thanks! I will probably try that out soon.
Comment #5
infojunkieMarking as fixed. You can reopen if there's a problem.
Comment #7
chien_fu commentedI've installed this module and I'm trying to get my Node Relativity integrated into Graphviz.. I go to the "Schema" tab under content types and it gives me no options. It says "Content Types" and then prints this error:
Graphviz encountered an error while rendering to format png:
sh: modules/graphviz_filter/dot: not found
The error seems non critical because I would think it could use gif or jpg.. but that's all I get. I've searched for how to fix this with no result. There is no "dot" folder or file in my graphviz_filter directory. Where would that have come from and how do I set it up?
Comment #8
chien_fu commentedOkay.. out of the woods on the above issue (http://drupal.org/node/883468) Thanks @infojunkie and @dman.
Now back to the issue at hand, using graphviz with node relativity.
When I go to content types and click CCK Schema I now get a beautiful graph with all of my content types and arrows depicting my node references.
I have one content type "person" that is allowed to reference other "person" content types via node relativity. So on my CCK Schema page I have a short dotted line that on the "person" content type that loops back around to itself. I am thinking that must represent the node relativity. I have a bunch of "person" nodes setup with node relativity links but don't know how to get those links to show up anywhere.
Picture a family tree.. that's what I'm going for, but don't know how to get that output. Any advice?
Comment #9
infojunkiethe CCK Schema module produces a class diagram, which illustrates the classes/content types of the system. The family tree you describe is different: what you want is a diagram of all instances in the system. If you agree, then feel free to turn this into a feature request.
Comment #10
chien_fu commentedAh.. Yes, that is seemingly what I want.
Let me be more specific.
I have a content type called person. This content type references other nodes off the same content type. The references make up families; parents and children. Say for instance I have a node called Steve, and Steve is a parent of two other "person" nodes: Tim and Howard.
I want a nice graphviz graph of the hierarchy of these three nodes.
ideally, I would love to have different relationship types such AS "legitimate" or "illegitimate". And these different relationships would show up as different connecting lines, for instance, solid or dotted.
what do you think the possibility is for that additional functionality?