Examples

These examples show ways to render temporal graph processes in 3D. View the source code for each example to learn more. The simplest place to start is diffusion.

nx3d.examples.diffusion.diffusion(g, **kwargs)[source]

This function opens a popup showing how a graph diffusion can be rendered. You can run it from your shell as follows:

`` python -m nx3d diffusion ``

Parameters

kwargs – passed to Nx3D.__init__

_images/watt_diffusion.gif _images/erdo_diffusion.gif
nx3d.examples.gameoflife.game_of_life(g=<networkx.classes.graph.Graph object>, **kwargs)[source]

This function opens a popup that runs the Game of Life.

`` python -m nx3d life ``

Parameters

kwargs – passed to Nx3D.__init__

_images/gol.gif
nx3d.examples.keyboard_control.keyboard_control(g=<networkx.classes.graph.Graph object>)[source]

A simple interactive example that lets the user dim and brighten the node colors with the y and u keys.