Comments (2)
That's actually a bug :-|
reporting it in an issue would be nice from you.
I'll correct this. I'll keep you inform.
For a stable version of pygexf please use 0.2.2 from pypi
Paul
2012/7/12 terual
[email protected]:
It is to me not clear how to add an attribute to a node or an edge using pygexf.
If I try this:
graph.edges[edge_id].addAttribute(id=attr_id, value=something)
I get:
Traceback (most recent call last): File "gexf.py", line 43, in <module> graph.edges[edge_id].addAttribute(id=attr_id, value=something) File "/usr/local/lib/python2.7/dist-packages/pygexf-0.2.2-py2.7.egg/gexf/_gexf.py", line 646, in addAttribute self._attributes.append(makeAttributeInstance(self,"node",id,value,start,end,startopen,endopen)) NameError: global name 'makeAttributeInstance' is not defined
What is the recommended way of adding attributes to nodes or edges?
Reply to this email directly or view it on GitHub:
#4
from pygexf.
Thanks to all and sorry having waited to long to correct this
from pygexf.
Related Issues (17)
- inclusion of pygexf into networkx
- Gexf.addGraph() does not allow start and end parameters to Graph()
- All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
- New API with less parameters HOT 3
- Take advantage of “lxml custom Element classes” (or objectify) ? HOT 3
- gexf v1.2draft support HOT 1
- Generate gexf format....from what format?
- Node spells error HOT 1
- viz setting for nodes HOT 2
- problem with coding with python3 HOT 1
- New release with python3 support? HOT 1
- write() function HOT 1
- It seems that files on PyPI are not up to date
- timetype value can't be declared? HOT 3
- Don't write stats to stdout or make it optional HOT 2
- Give ability to set size and shape viz attributes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygexf.