igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] How to Create a Weight List using Python for Modularity()


From: Tamás Nepusz
Subject: Re: [igraph] How to Create a Weight List using Python for Modularity()
Date: Sun, 23 Feb 2014 21:53:51 +0100

Because you constructed a “GraphBase” object and not a “Graph” object. 
“GraphBase” is internal and should not be used directly.

--  
T.


On Sunday, 23 February 2014 at 21:50, Salvatore Palomino wrote:

> When I do the same to my graph (g, undirected, V = 101, E = 10100), it gives 
> me an error.
>  
> <<< type(g.es (http://g.es))  
> AttributeError: 'igraph.Graph' object has no attribute 'es'
>  
>  
>  
> On Sun, Feb 23, 2014 at 12:25 PM, Tamás Nepusz <address@hidden 
> (mailto:address@hidden)> wrote:
> > > .es[] is included in which package?
> >  
> >  
> > .es is a standard attribute of any graph object in the Python interface of 
> > igraph:
> >  
> > > > > from igraph import Graph
> > > > > g = Graph.Famous(“petersen”)
> > > > > type(g.es (http://g.es))
> > > >  
> > >  
> >  
> > igraph.EdgeSeq
> >  
> > —
> > T.
> >  
> >  
> >  
> > _______________________________________________
> > igraph-help mailing list
> > address@hidden (mailto:address@hidden)
> > https://lists.nongnu.org/mailman/listinfo/igraph-help
>  
>  
> _______________________________________________
> igraph-help mailing list
> address@hidden (mailto:address@hidden)
> https://lists.nongnu.org/mailman/listinfo/igraph-help






reply via email to

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