# Revision history [back]

### Plotting poset with vertices replaced by graph plots

Hello ask.sagemath! I'd like to graph a poset of all connected graphs on $4$ vertices with the relation of $\subset$.
So far I can either draw all such graph using

L = filter(lambda g : g.is_connected(), graphs(4));
graphs_list.show_graphs(L)


Or draw a Poset with

Poset((["a","b","c"],[["a","c"],["b","c"]])).show();


But I can't combine them to, say, have

g1=Graph([(1,2),(2,3)]);
g2=Graph([(1,2),(1,3)]);
g3=Graph(networkx.complete_graph(3));
Poset([g1,g2,g3],[[g1,g3],[g2,g3]).show();


### Plotting poset with vertices replaced by graph plots

Hello ask.sagemath! I'd like to graph a poset of all connected graphs on $4$ vertices with the relation of $\subset$.
So far I can either draw all such graph using

L = filter(lambda g : g.is_connected(), graphs(4));
graphs_list.show_graphs(L)


Or draw a Poset with

Poset((["a","b","c"],[["a","c"],["b","c"]])).show();


But I can't combine them to, say, have

g1=Graph([(1,2),(2,3)]);
g2=Graph([(1,2),(1,3)]);
g3=Graph(networkx.complete_graph(3));
Poset([g1,g2,g3],[[g1,g3],[g2,g3]).show();


Is there a way to draw a poset where the vertices are also drawn to be graphs?

 3 retagged FrédéricC 5096 ●3 ●42 ●110

### Plotting poset with vertices replaced by graph plots

Hello ask.sagemath! I'd like to graph a poset of all connected graphs on $4$ vertices with the relation of $\subset$.
So far I can either draw all such graph using

L = filter(lambda g : g.is_connected(), graphs(4));
graphs_list.show_graphs(L)


Or draw a Poset with

Poset((["a","b","c"],[["a","c"],["b","c"]])).show();


But I can't combine them to, say, have

g1=Graph([(1,2),(2,3)]);
g2=Graph([(1,2),(1,3)]);
g3=Graph(networkx.complete_graph(3));
Poset([g1,g2,g3],[[g1,g3],[g2,g3]).show();


Is there a way to draw a poset where the vertices are also drawn to be graphs?