igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] add edges in python igraph


From: Simone Gabbriellini
Subject: Re: [igraph] add edges in python igraph
Date: Mon, 19 Jan 2009 13:05:31 +0100

is it possible to set also the color of the new edge?

like:
g.add_edges((1,2), color='blue') ### I know this doesn't work...

many thanks,
simone

2009/1/19 Tamas Nepusz <address@hidden>:
> Hi Simone,
>
>> can you please tell me how to add an edge from vertex 1 to vertex 2 in
>> the python igraph?
>>>> g = Graph(3)         # Create a graph with 3 vertices
>>>> g.add_edges((1,2))
>
> Or, even simpler:
>>>> g = Graph(3)
>>>> g += (1,2)
>
> --
> Tamas
>
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>




reply via email to

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