By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

Concept Map

Subsciber123
P: 87
I am writing a program to create family trees. It is stable, but I would say that it is still in the pre-alpha stage. Anyway, I would like to be able to export the tree to a concept map.

Does anybody know of either a module in python that supports making concept maps or a program that stores its concept maps in an easily duplicable xml format? Any code that anybody has written in python that is relevant in the slightest to creating a concept map would be appreciated.

It would be preferable to be able to create the concept maps in html, svg, pdf, or as an image. Any format, though, would be acceptable. (Of those, html would be the most preferable.)

Note: the reason it needs to be a concept map and not a mind map is because spousal relationships cannot be represented in a mind map. Neither can sibling relationships, but I haven't implemented rendering those yet.
Mar 15 '08 #1
Share this Question
Share on Google+
2 Replies


raubana
P: 56
All I can say is that you could use the file object (somehow) to save a .txt file.
...or, you could convert this into a pygame program so you could save the picture by saying
Expand|Select|Wrap|Line Numbers
  1. pygame.image.save(screen, "name_of_file.bmp")
  2.  
That's all I can really say. Sorry!
(BTW, please help me, if you could!)
Mar 19 '08 #2

Subsciber123
P: 87
All I can say is that you could use the file object (somehow) to save a .txt file.
...or, you could convert this into a pygame program so you could save the picture by saying
Expand|Select|Wrap|Line Numbers
  1. pygame.image.save(screen, "name_of_file.bmp")
  2.  
That's all I can really say. Sorry!
(BTW, please help me, if you could!)
Thanks for the idea. I have already started using PyX (a TeX/LaTeX wrapper) to create pdf's (and/or eps's). The real reason I asked here, though, was to see if anybody had already created a program for arranging the nodes in the tree/web diagram and drawing lines between them. At the time, I had absolutely no idea how I was going to get that done. Now, at least I have the ability to write text inside rectangles (and word wrap, yay!) with a background color without too much effort.

Now all I have to figure out how to do is arrange the nodes. It would be highly desirable for none of the nodes to overlap, and for the lines connecting the nodes to not go through any of the nodes. Any ideas, anyone? Keep in mind that this family tree software does not limit the family relationships in any way because it was created for a very specific purpose (don't ask). For example, it allows for people to be their own parents, et cetera.

The relationships currently implemented are:
Biological Parental
Adoptive Parental
Spousal
Ex-Spousal

That's it. All other relationships (currently only children) are derived from those ones. I'll probably change it later, though, in the case of children, just so that larger trees don't lag when a node tries to figure out who its children are.

I probably added a lot more information than could be useful for anyone, but that's life. Please let me know if you have any ideas on how to set the location of the nodes.

Thanks.
Mar 20 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.