interactive_network#
- class braintools.visualize.interactive_network(adjacency, positions=None, node_labels=None, node_colors=None, edge_weights=None, title='Interactive Network', width=800, height=600, **kwargs)#
Create interactive network visualization using Plotly.
- Parameters:
adjacency (
ndarray) – Adjacency matrix.positions (
ndarray|None) – Node positions (N, 2).node_colors (
ndarray|None) – Node colors.edge_weights (
ndarray|None) – Edge weights for thickness.title (
str) – Plot title.width (
int) – Figure dimensions.height (
int) – Figure dimensions.**kwargs – Additional arguments passed to Plotly scatter.
- Returns:
fig – Interactive plotly figure.
- Return type:
plotly.graph_objects.Figure