Beispiel #1
0
def update_overview(subject):
    return graph.big_picture(subject)
Beispiel #2
0
        }
    },
]


overview_graph = cyto.Cytoscape(
    id='overview_graph',
    # layout={'name':'concentric', 'mindNodeSpacing':15, 'spacingFactor':0.25, 'equidistant':True},
    layout={'name':'circle'},
    style={
        'width': '100%',
        'height': '650px',
    },
    maxZoom=1.5,
    stylesheet=get_color_coded_style_sheet(),
    elements=graph.big_picture('comp')
)



def get_course_path_graph(show_preq=False):
    course_path_graph = cyto.Cytoscape(
        id='course_path_graph',
        layout={'name':'cose'},
        style={
            'width': '100%',
            'height': '650px',
        },
        zoom= 1.2,
        minZoom= 0.3,
        maxZoom= 1.5,