igraph-help
[Top][All Lists]
Advanced

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

[igraph] returning a graph object


From: Marco
Subject: [igraph] returning a graph object
Date: Fri, 13 Feb 2009 12:51:30 +0100

Dear list,

i have a function in my python code, let's call it evolve(), that
takes a graph as argument and returns a graph.
Basically it is be something like:

def evolve(graph,a)
      ...do something a times....
      return graph


I use it in my code as:

graph=igraph.Graph.Erdos_Renyi(cool parameters here)
graph=evolve(graph)

Fact is, this code doesn't work.

If i keep the code of the function evolve in __main__, it works flawlessy.

Ideas on why?

thanks in advance,

marco

--

Quando sei una human pignata
e la pazzo jacket si รจ accorciata
e non ti puoi liberare
dai colpi di legno e di bastone
dai petardi sul groppone

Vinicio Capossela




reply via email to

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