libpysal icon indicating copy to clipboard operation
libpysal copied to clipboard

visualization for directed `Graph`s

Open knaaptime opened this issue 5 months ago • 1 comments

our current viz methods for the Graph (plot and explore) implicitly plot undirected graphs; an edge is drawn any time there is a link between ij or ji. As discussed in #628, even when plotting weight values with explore, there's still no way to differentiate the direction of the link because the edges are drawn on top of one another.

As an alternative, we could use interactivity to show direction, e.g. mousing over an observation shows all weighted edges to/from that unit

Image

I have an early proof of concept for that idea using lonboard here and a more recent one here

with that approach we can differentiate incoming links to the focal observation

Image

versus outgoing ones (same observation, first image shows the values ji, the second shows ij)

Image

knaaptime avatar Aug 13 '25 18:08 knaaptime