Re: Path (graph) shower utility

2006-02-25 Thread Jorgen Grahn
On Wed, 22 Feb 2006 11:31:15 +0100, Durumdara [EMAIL PROTECTED] wrote:
 Hi !

 I need to create a program that read eml file headers, analyze the 
   
You mean email. Took me some time to figure out.

 receive tags and create a path database. I finished with this program 
  
You mean the Recieved: headers. Also took some time to figure out.

 section.

 But I want to show a graphical summary about the paths.

 This is (what I want to show) like a graph - show ways, stations, etc, 
 and I want to show the strength of lines (how many of mails use this way).

 Can anyone known about a freeware tool, software, or python module that 
 can show graphs with best alignments ?

Sure. You want graphviz:

  http://www.research.att.com/sw/tools/graphviz/

It's primarily a tool for rendering a graph (in Postscript, PNG etc) from a
text representation, but IIRC there are Python bindings for it as well. Lots
of people use it for purposes similar to yours.

/Jorgen

-- 
  // Jorgen Grahn grahn@Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.dyndns.org  R'lyeh wgah'nagl fhtagn!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Path (graph) shower utility

2006-02-25 Thread bearophileHUGS
Thank you Jorgen, now I understand the question, and the answer isn't
difficult :-)

Graphviz is good enough for this purpose.

but IIRC there are Python bindings for it as well.

Durumdara can use an email module to extract data, then a graph library
to create the graph, and then save the result in dot format for
Graphviz.
My Graph is probably enough:
http://sourceforge.net/projects/pynetwork/
Otherwise NetworkX is good:
https://networkx.lanl.gov/
There are other libs around, I have seen a new one quite recently.

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list


Path (graph) shower utility

2006-02-23 Thread Durumdara
Hi !

I need to create a program that read eml file headers, analyze the 
receive tags and create a path database. I finished with this program 
section.

But I want to show a graphical summary about the paths.

This is (what I want to show) like a graph - show ways, stations, etc, 
and I want to show the strength of lines (how many of mails use this way).

Can anyone known about a freeware tool, software, or python module that 
can show graphs with best alignments ?

Please help me. Thanx for it:
dd

-- 
http://mail.python.org/mailman/listinfo/python-list


Path (graph) shower utility

2006-02-22 Thread Durumdara
Hi !

I need to create a program that read eml file headers, analyze the
receive tags and create a path database. I finished with this program
section.

But I want to show a graphical summary about the paths.

This is (what I want to show) like a graph - show ways, stations, etc,
and I want to show the strength of lines (how many of mails use this way).

Can anyone known about a freeware tool, software, or python module that
can show graphs with best alignments ?

Please help me. Thanx for it:
dd


Ps:
The OS is Windows XP:
I tryed with pydot, but this code created many 0 length files.

import pydot

print pydot.find_graphviz()

edges=[(1,2), (1,3), (1,4), (3,4)]
g=pydot.graph_from_edges(edges)
g.write_svg('graph_from_edges_dot.svg', prog='dot')
g.write_svg('graph_from_edges_neato.svg', prog='neato')
g.write_jpeg('graph_from_edges_dot.jpg', prog='dot')
g.write_jpeg('graph_from_edges_neato.jpg', prog='neato')

 

{'fdp': 'c:\\Program Files\\ATT\\Graphviz\\bin\\fdp.exe', 'twopi': 
'c:\\Program Files\\ATT\\Graphviz\\bin\\twopi.exe', 'neato': 
'c:\\Program Files\\ATT\\Graphviz\\bin\\neato.exe', 'dot': 'c:\\Program 
Files\\ATT\\Graphviz\\bin\\dot.exe', 'circo': 'c:\\Program 
Files\\ATT\\Graphviz\\bin\\circo.exe'}


Thanx for help: dd


-- 
http://mail.python.org/mailman/listinfo/python-list