1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

bug in graph lib / layout.py module

Posted by Giorgio O. on Jan 28, 2009

hello!

the graph.layout.tweak(k=2, m=0.01, w=15, d=0.5, r=15) function doesn't work... beacuse if you check the layout.py file you'll see that in the class spring_layout / tweak() there's a comma after the self.m value. If you remove that comma everything works as it should.


 
Posted by Tom De Smedt on Jan 29, 2009

Fixed it in the latest version.
Also, graph.betweenness_centrality() and graph.shortest_path() now have an optional directed=False parameter that can be set to True for people working with directed graphs.