|
From: | Salvatore Palomino |
Subject: | Re: [igraph] How to Create a Weight List using Python for Modularity() |
Date: | Sun, 23 Feb 2014 13:14:46 -0800 |
Because you constructed a “GraphBase” object and not a “Graph” object. “GraphBase” is internal and should not be used directly.
--
T.
> <<< type(g.es (http://g.es))
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.
>
> 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:> > > > > type(g.es (http://g.es))
> > > .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”)
> > > >> > address@hidden (mailto:address@hidden)
> > >
> >
> > igraph.EdgeSeq
> >
> > —
> > T.
> >
> >
> >
> > _______________________________________________
> > igraph-help mailing list
> > 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
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |