Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
I am not sure how exactly to submit a patch, but this should fix the issue:

$ svn diff pydot.py
Index: pydot.py
===================================================================
--- pydot.py    (revision 9)
+++ pydot.py    (working copy)
@@ -234,7 +234,7 @@

     for edge in edge_list:

-        e = Edge( node_prefix + edge[0], node_prefix + edge[1] )
+        e = Edge( node_prefix + str(edge[0]), node_prefix + str(edge[1]) )
         graph.add_edge(e)

     return graph

Original comment by [email protected] on 17 Oct 2008 at 10:34

from pydot.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Patch worked for me. Thanks.

Original comment by [email protected] on 12 Dec 2008 at 5:37

from pydot.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Thanks for the patch!
I also had to do the following (I am using pydot with Networkx):
diff pydot-1.0.2/pydot.py pydot-1.0.2_patched/pydot.py
237,238c237,238
<         e = Edge( node_prefix + edge[0], node_prefix + edge[1] )
<         graph.add_edge(e)
---
>   e = Edge( node_prefix + str(edge[0]), node_prefix + str(edge[1]) )
>   graph.add_edge(e)
900c900
<             edge_attr.append( attr + '=' + quote_if_necessary(value) )
---
>             edge_attr.append( attr + '=' + str(quote_if_necessary(value)) )

Original comment by [email protected] on 15 Oct 2009 at 4:29

from pydot.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
Works for me, can this be committed?

Original comment by [email protected] on 8 Dec 2009 at 1:41

from pydot.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
I'd like to see this fixed ASAP as I have code that depends on it (and that 
needs to be deployed) - so I can't 
depend on other users having a modified version of pydot installed.

Original comment by [email protected] on 13 Dec 2009 at 8:32

from pydot.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024

Original comment by [email protected] on 30 Oct 2010 at 11:54

  • Changed state: Duplicate

from pydot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.