A GraphItem displays graph information as a set of nodes connected by lines (as in ‘graph theory’, not ‘graphics’). Useful for drawing networks, trees, etc.
Change the data displayed by the graph.
Arguments | |
pos | (N,2) array of the positions of each node in the graph. |
adj | (M,2) array of connection data. Each row contains indexes of two nodes that are connected. |
pen | The pen to use when drawing lines between connected nodes. May be one of:
|
symbolPen | The pen used for drawing nodes. |
**opts | All other keyword arguments are given to ScatterPlotItem.setData() to affect the appearance of nodes (symbol, size, brush, etc.) |