[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] C/igraph: How to handle weighted graphs?
From: |
Szabolcs Horvát |
Subject: |
[igraph] C/igraph: How to handle weighted graphs? |
Date: |
Mon, 31 Aug 2015 10:21:32 +0200 |
Dear All,
What is the proper way to handle weighted graphs with C/igraph?
It appears that most (all?) functions that use weights take the
weights as a separate argument (and ignore them if passed NULL). But
weights can also be stored inside the graph, as a graph attribute. Is
there any reason, other than perhaps convenience, why I should store
the weights as a graph attribute instead of a separate vector? Do any
functions automatically use the weights stored in the graph itself?
I am working on an igraph interface for Mathematica. I am asking this
question to make sure the choice I make will work well with all
functions, including the ones I haven't looked at yet.
Szabolcs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [igraph] C/igraph: How to handle weighted graphs?,
Szabolcs Horvát <=