Ejemplo n.º 1
0
from gPy.Examples import asia
from gPy.Structures import GraphicalReducedHyperGraph
from Tkinter import Tk
hg = asia.hypergraph()
hg.red()
hg = GraphicalReducedHyperGraph(hg)
root=Tk()
gr = asia.adg().moralise()
gr.add_line('Cancer','Bronchitis')
hg2 = gr.hypergraph()
hg2.gui_grahams_algorithm(root)
root.mainloop()
Ejemplo n.º 2
0
from gPy.Examples import asia
from gPy.Structures import GraphicalReducedHyperGraph
from Tkinter import Tk

hg = asia.hypergraph()
hg.red()
hg = GraphicalReducedHyperGraph(hg)
root = Tk()
gr = asia.adg().moralise()
gr.add_line('Cancer', 'Bronchitis')
hg2 = gr.hypergraph()
hg2.gui_grahams_algorithm(root)
root.mainloop()
Ejemplo n.º 3
0
from Tkinter import Tk, Label
from gPy.Examples import asia

root=Tk()
asia.interaction_graph().gui_display(root)
Label(root,text=str(asia.hypergraph())).pack()
root.mainloop()
Ejemplo n.º 4
0
from Tkinter import Tk, Label
from gPy.Examples import asia

root = Tk()
asia.interaction_graph().gui_display(root)
Label(root, text=str(asia.hypergraph())).pack()
root.mainloop()