Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Labeling vertices of a graph effectively

Suppose I have $k$ copies of the $5$- cliques formed by using the following code:

def Sier(n,k):
l=list(range(1,k))
g=graphs.CompleteGraph(n)
for i in l:
    g=g.disjoint_union(graphs.CompleteGraph(n))
return g
k=Sier(5,5)

How do I label the vertices in the manner $ij$ where $i$ stands for the $i$-th copy and $j$ for the $j$-th vertex in the $i$-th copy of the clique?

Labeling vertices of a graph effectively

Suppose I have $k$ copies of the $5$- cliques formed by using the following code:

def Sier(n,k):
 l=list(range(1,k))
 g=graphs.CompleteGraph(n)
 for i in l:
     g=g.disjoint_union(graphs.CompleteGraph(n))
 return g
k=Sier(5,5)

How do I label the vertices in the manner $ij$ where $i$ stands for the $i$-th copy and $j$ for the $j$-th vertex in the $i$-th copy of the clique?