[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] Python bindings issue
From: |
Filip Hermans |
Subject: |
[igraph] Python bindings issue |
Date: |
Tue, 3 Jun 2008 21:41:32 +0200 |
Dear all,
whenever i want to execute the following script:
from igraph import *
class Node:
" A generic Node class with some property and some attribute"
def __init__(self):
pass
nrOfNodes = 3;
# create nrOfNodes instances of the class Node
nodes = [Node() for each in range(nrOfNodes)]
# create the vertex_attrs dictionary
vattrs = {0:nodes[0],1:nodes[1],2:nodes[2]}
# instantiation of the graph
g = Graph(n=2,edges=[(0,1),(0,2)],directed=True,vertex_attrs=vattrs)
i get the following error:
TypeError: 'vertex_attrs' is an invalid keyword argument for this
function
Has anybody experienced the same problem, or at least any idea on how
to solve this?
greetings,
Filip
- [igraph] Python bindings issue,
Filip Hermans <=