thirdparty/python-graph/examples/read.py
author Pawel Solyga <Pawel.Solyga@gmail.com>
Sun, 30 Nov 2008 16:39:18 +0000
changeset 626 342bebadd075
parent 594 06c2228e39cb
permissions -rw-r--r--
Fix too long lines in soc.views.models.request, remove unused imports and change pending requests list description. Remove unused imports from soc.logic.path_link_name module. Patch by: Pawel Solyga

#!/usr/bin/env python

# Copyright (c) 2007-2008 Pedro Matiello <pmatiello@gmail.com>
# License: MIT (see COPYING file)

import sys
sys.path.append('..')
import graph

gr = graph.graph()

inputfile = file('graph.xml','r')
string = inputfile.read()
inputfile.close()

gr.read(string)
print gr.write()