[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] : Adjacency Matrix
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] : Adjacency Matrix |
Date: |
Sun, 16 Nov 2014 18:44:24 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
> To use igraph_adjacency function () I need to create a variable of type
> igraph_adjacency_t or simply use the following syntax: igraph_adjacency (&
> net, & adj, IGRAPH_ADJ_UNDIRECTED)?
igraph_adjacency_t is an enum so you simply have to use one of the constants
from the enum there, e.g.:
igraph_adjacency(&net, &adj, IGRAPH_ADJ_UNDIRECTED);
> You can use the SETEAN () function before creating the graph, or only after
> its creation is possible to set the numerical values of the edges?
You cannot use it before the graph is created.
--
T.