From fb1ab3e4e9b154744a87b691698b6b421e658626 Mon Sep 17 00:00:00 2001 From: einarr Date: Tue, 3 Oct 2006 21:05:41 +0000 Subject: [PATCH] Fixed a bug in NetworkDataset. --- system/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/dataset.py b/system/dataset.py index 379e0e6..47ed9f7 100644 --- a/system/dataset.py +++ b/system/dataset.py @@ -288,7 +288,7 @@ class GraphDataset(Dataset): if m!=n: raise IOError, "Adjacency matrix must be square" - if A[A[:,0].nonzero()[0],0]==1: #unweighted graph + if A[A[:,0].nonzero()[0][0],0]==1: #unweighted graph G = nx.Graph() else: G = nx.XGraph()