Make a graph consisting of a loop of 3 nodes.

21.1

[ Click to enter code ]

Make a graph with 4 nodes in which every node is connected.

21.2

[ Click to enter code ]

Make a table of undirected graphs with between 2 and 10 nodes in which every node is connected.

21.3

[ Click to enter code ]

Use Table and Flatten to get {1,2,1,2,1,2}.

21.4

[ Click to enter code ]

Make a line plot of the result of concatenating all digits of all integers from 1 to 100 (i.e. ..., 8, 9, 1, 0, 1, 1, 1, 2, ...).

21.5

[ Click to enter code ]

Make a graph with 50 nodes, in which node i connects to node i+1.

21.6

[ Click to enter code ]

Make a graph with 4 nodes, in which each connection connects i to Max[i,j].

21.7

[ Click to enter code ]

Make a graph in which each connection connects i to j-i, where i and j both range from 1 to 5.

21.8

[ Click to enter code ]

Generate a graph with 100 nodes, each with a connection going to one randomly chosen node.

21.9

[ Click to enter code ]

Generate a graph with 100 nodes, each connecting to two randomly chosen nodes.

21.10

[ Click to enter code ]

For the graph {1->2,2->3,3->4,4->1,3->1,2->2}, make a grid giving the shortest paths between every pair of nodes, with the start node as row and end node as column.

21.11

[ Click to enter code ]

Make a graph with 4 nodes in which every node is connected, displaying the resulting graph with radial drawing.

x21.1

[ Click to enter code ]

Generate a graph in which a single node is connected to 10 others.

x21.2

[ Click to enter code ]

Use Flatten to generate a table of the numbers 1 to 50 in which even numbers are colored red.

x21.3

[ Click to enter code ]

Use ImageData, Flatten and Total to find the number of white pixels in Binarize[Rasterize["W"]].

x21.4

[ Click to enter code ]

Use Flatten, IntegerDigits and Total to find the sum of all digits of all whole numbers up to 1000.

x21.5

[ Click to enter code ]

Generate a graph with 200 connections, each between nodes with numbers randomly chosen between 0 and 100.

x21.6

[ Click to enter code ]

Generate a plot that shows communities in a random graph with nodes numbered between 0 and 100, and 200 connections.

x21.7

[ Click to enter code ]