[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Nodes properties
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] Nodes properties |
Date: |
Mon, 12 Jan 2015 10:56:06 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi,
> How can i add properties to the nodes of a graph ? Iam using igraph with C
> language.
Please refer to http://igraph.org/c/doc/igraph-Attributes.html
> I want to add:
>
> char *
> doubles
> int
>
> and access by the adjacency matrix structure. Is there any doc to this ?
igraph does not use adjacency matrices to represent a graph. If you want to
retrieve an attribute corresponding to an edge, you have to query the ID of the
edge first using igraph_get_eid() and then retrieve the attribute of interest
using igraph_cattribute_EAN() for numeric attributes, igraph_cattribute_EAS()
for string attributes, or igraph_cattribute_EAB() for booleans.
--
T.
- [igraph] Nodes properties, Daniel Penalva, 2015/01/11
- Re: [igraph] Nodes properties,
Tamas Nepusz <=
- Re: [igraph] Nodes properties, Daniel Penalva, 2015/01/12
- Re: [igraph] Nodes properties, Daniel Penalva, 2015/01/13
- Re: [igraph] Nodes properties, Daniel Penalva, 2015/01/13
- Re: [igraph] Nodes properties, Gábor Csárdi, 2015/01/13
- Re: [igraph] Nodes properties, Daniel Penalva, 2015/01/13
- Re: [igraph] Nodes properties, Gábor Csárdi, 2015/01/13
- Re: [igraph] Nodes properties, Daniel Penalva, 2015/01/13