06 Network Graphs

Visualizing and working with network graphs is a common problem in many different disciplines. HoloViews provides the ability to represent and visualize graphs very simply and easily with facilities for interactively exploring the nodes and edges of the graph, especially using the Bokeh plotting interface. It can also make use of Datashader for plotting large graphs, and NetworkX for some convenient graph functions:

In [1]:
import numpy as np
import pandas as pd
import holoviews as hv
from holoviews import opts, dim
import networkx as nx


defaults = dict(width=400, height=400, padding=0.1)
    opts.EdgePaths(**defaults), opts.Graph(**defaults), opts.Nodes(**defaults))