igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] reading gml files converts an int attribute into float


From: Krishna Sandeep Reddy Dubba
Subject: [igraph] reading gml files converts an int attribute into float
Date: Thu, 11 Jul 2013 12:00:10 +0100

Hi all,
I generate a gml file with nodes having an integer attribute. But when I read it back using igraph.read, the attribute values are floats.

for example this is how I generating gml file:

count = 0  # My intention is to make the attribute value an integer, otherwise I can use 0.0
for loop:
    node_attribute = count
    count += 1

But when I read the gml file using igraph, the node attribute becomes float, i.e. 0.0

Is it a bug or am I doing some silly mistake?

Cheers,
dksr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]