gonum / graph

Graph packages for the Go language [DEPRECATED]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

concrete: dense graphs assume Inf is the non-edge state

kortschak opened this issue · comments

This is related to #52.

In the case where a graph is being used to analyse a correlation matrix this is not the correct behaviour - a 0 edge weight is an absent edge.

I propose the dense graph types expose a float64 field that indicates the value associated with an absent edge. Then clients may choose between states that are appropriate for their domain (the most obvious choices being 0, Inf and NaN).