Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for loop. But each line of the graphs looks too small and there is too much space between each pair of graphs.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for loop. for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs.graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method, but I won't put a border on the image yet. The border in the following picture is ugly. (The reason for putting a border on each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j]) for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(frame=True, axes=False)

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method, but I won't put a border on the image yet. yet (like the blue border above). The border in the following picture is ugly. (The reason for putting a border on each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j]) for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(frame=True, axes=False)

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method, but I won't put a border on the image for each graph yet (like the blue border above). The border in the following picture is ugly. (The reason for putting a border on each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j]) for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(frame=True, axes=False)

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method, but I won't method. I put a border for each frame around the graph yet (like the blue border above). The border for each graph in the following picture is ugly. not is inconsistent. (The reason for putting a border on each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j]) G=[plot(g[i][j],graph_border=True,edge_thickness=2, vertex_size=200,vertex_labels=True,vertex_color='orange') for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(frame=True, axes=False)
graphics_array(G).show(figsize=5)

image descriptionimage description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method. I put a frame around the each graph (like the blue border above). The border But the frame for each graph is not is inconsistent (see in the following picture is not is inconsistent. picture). (The reason for putting a border on each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j],graph_border=True,edge_thickness=2, vertex_size=200,vertex_labels=True,vertex_color='orange') for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(figsize=5)

image description

How to adjust the size of graphs in `graphs_list.show_graphs`

The following code is used to find some cospectral graphs. I want to show it in pairs with a for-loop. But each line of the graphs looks too small and there is too much space between each pair of graphs. I want to show them in a beautiful way.

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l): 
    print("The",i+1, "th pair cospectral graphs")
    graphs_list.show_graphs(g[i],vertex_size=200,figsize=100,vertex_labels=True,vertex_color='orange')

image description

I tried another method. I put a frame around each graph (like the blue border above). But the frame for each graph is not is inconsistent (see in the following picture). (The reason for putting a border on frame around each graph is to better distinguish the different graphs)

g=graphs.cospectral_graphs(6)
l=len(g)
for i in range(l):               
    G=[plot(g[i][j],graph_border=True,edge_thickness=2, vertex_size=200,vertex_labels=True,vertex_color='orange') for j in range(len(g[i]))]
    print("The",i+1, "th pair cospectral graphs:")
    graphics_array(G).show(figsize=5)

image description