7.1 Networkx

Networkx (http://networkx.lanl.gov) ``is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks''. More details can also be found on http://www.sagemath.org:9001/graph_survey or in Robert Miller's SageDays 3 talk.

sage: C = graphs.CubeGraph(4)

Now type C.show(vertex_labels=False, node_size=60, graph_border=True, figsize=[9,8]) to view this with some of the options.

The digraph below is a $ 3$ -cycle with vertices $ \{0,1,2\}$ and edges $ 0\rightarrow 1$ , $ 1\rightarrow 2$ , $ 2\rightarrow 0$ :

sage: D = DiGraph( { 0: [1], 1: [2], 2: [0]} )

Type D.show() to view this.

See About this document... for information on suggesting changes.