9 def make_graph(Self,parents,children,otherparents,spouses):
15 for i in range(1,len(parents)):
16 if parents[i]==parents[i-1]:
17 parents[1]=parents[1] + ' '+str(countSame)
18 countSame = countSame +1
20 d.add_marriage(parents[0],parents[1],[Self],1)
22 for i in range(len(otherparents)):
25 d.add_marriage(Self,op,[c],1)
27 for i in range(len(spouses)):
29 d.add_marriage(Self,s,[],1)
32 d.subgraphs.append(children)
41 form = cgi.FieldStorage()
43 Self = form.getvalue('Self')
46 op = form.getlist('op')
49 make_graph(Self,p,c,op,s)